diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-21 12:04:45 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-21 12:04:45 +0000 |
| commit | 8e32479124b45fa968e69dd44eba2d471f27d42a (patch) | |
| tree | 10e0904b136a208f293803a38cc98fdcf98daa06 | |
| parent | 62269b71135bd7dca7c6adf7618609afed561ba8 (diff) | |
- Revert possibility to select contact with TAB key in autocompletion list
git-svn-id: https://svn.roundcube.net/trunk@5259 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index c1496303c..f9233eb21 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -3495,9 +3495,15 @@ function rcube_webmail() return rcube_event.cancel(e); + case 9: // tab + if (mod == SHIFT_KEY || !this.ksearch_visible()) { + this.ksearch_hide(); + return; + } + case 13: // enter - if (this.ksearch_selected === null || !this.ksearch_value) - break; + if (!this.ksearch_visible()) + return false; // insert selected address and hide ksearch pane this.insert_recipient(this.ksearch_selected); @@ -3505,7 +3511,6 @@ function rcube_webmail() return rcube_event.cancel(e); - case 9: // tab case 27: // escape this.ksearch_hide(); return; @@ -3523,6 +3528,11 @@ function rcube_webmail() return true; }; + this.ksearch_visible = function() + { + return (this.ksearch_selected !== null && this.ksearch_selected !== undefined && this.ksearch_value); + }; + this.ksearch_select = function(node) { var current = $('#rcmksearchSelected'); |
