mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-08-13 17:03:51 -04:00
Autocomplete nicknames with Tab key
This commit is contained in:
parent
9e4e35d297
commit
a09f78b77f
@ -131,7 +131,7 @@ module.exports = BasePage.extend({
|
||||
this.resizeInput();
|
||||
},
|
||||
handleKeyDown: function (e) {
|
||||
if (e.which === 13 && !e.shiftKey) {
|
||||
if ((e.which === 13 || e.which === 9) && !e.shiftKey) { // Enter or Tab
|
||||
if (this.$autoComplete.css('display') != 'none') {
|
||||
var nickname = this.$autoComplete.find(">:nth-child(" + this.autoCompletePos + ")>:first-child").text();
|
||||
this.rosterItemSelected(nickname);
|
||||
|
Loading…
Reference in New Issue
Block a user