summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-10-25 21:36:44 +0200
committerJulius Härtl <jus@bitgrid.net>2018-10-30 10:19:35 +0100
commite8e898ede8b7655f9c4e61834d2a038b009bc6cb (patch)
tree1930ec2079e164b1efc1459c5526b95644158f3b
parent7a65779316b275dedf689f14ce5228b64ec6cb5e (diff)
downloadnextcloud-server-e8e898ede8b7655f9c4e61834d2a038b009bc6cb.tar.gz
nextcloud-server-e8e898ede8b7655f9c4e61834d2a038b009bc6cb.zip
Use tab to complete selected entry to the share entry
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--core/js/sharedialogview.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js
index 9709c734f60..cd7f07011c3 100644
--- a/core/js/sharedialogview.js
+++ b/core/js/sharedialogview.js
@@ -539,6 +539,16 @@
_onSelectRecipient: function(e, s) {
var self = this;
+ if (e.keyCode == 9) {
+ e.preventDefault();
+ e.target.value = s.item.label;
+ setTimeout(function() {
+ $(e.target).attr('disabled', false)
+ .autocomplete('search', $(e.target).val());
+ }, 0);
+ return false;
+ }
+
e.preventDefault();
// Ensure that the keydown handler for the input field is not
// called; otherwise it would try to add the recipient again, which