|
@ -152,10 +152,10 @@ AppsMenu.include({ |
|
|
this._searchMenusSchedule(); |
|
|
this._searchMenusSchedule(); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
var all = this.$search_results.find(".mk_menu_search_result"), |
|
|
|
|
|
pre_focused = all.filter(".active") || $(all[0]), |
|
|
|
|
|
offset = all.index(pre_focused), |
|
|
|
|
|
key = event.key; |
|
|
|
|
|
|
|
|
var all = this.$search_results.find(".mk_menu_search_result"); |
|
|
|
|
|
var key = event.key || String.fromCharCode(event.which); |
|
|
|
|
|
var pre_focused = all.filter(".active") || $(all[0]); |
|
|
|
|
|
var offset = all.index(pre_focused); |
|
|
if (key === "Tab") { |
|
|
if (key === "Tab") { |
|
|
event.preventDefault(); |
|
|
event.preventDefault(); |
|
|
key = event.shiftKey ? "ArrowUp" : "ArrowDown"; |
|
|
key = event.shiftKey ? "ArrowUp" : "ArrowDown"; |
|
@ -171,9 +171,7 @@ AppsMenu.include({ |
|
|
offset++; |
|
|
offset++; |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
if (key.length === 1 || key === "Backspace") { |
|
|
|
|
|
this._searchMenusSchedule(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this._searchMenusSchedule(); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (offset < 0) { |
|
|
if (offset < 0) { |
|
|