mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12539] Reposition ESC to be on top
PHPBB3-12539
This commit is contained in:
parent
fe7118aea0
commit
ade88f020e
1 changed files with 5 additions and 5 deletions
|
@ -745,6 +745,11 @@ phpbb.search.navigateResults = function($input, $container, $resultContainer) {
|
||||||
$active = $resultContainer.children('.active');
|
$active = $resultContainer.children('.active');
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
// Close the results
|
||||||
|
case keymap.ESC:
|
||||||
|
phpbb.search.closeResults($input, $container);
|
||||||
|
break;
|
||||||
|
|
||||||
// Set the value for the selected result
|
// Set the value for the selected result
|
||||||
case keymap.ENTER:
|
case keymap.ENTER:
|
||||||
if ($active.length) {
|
if ($active.length) {
|
||||||
|
@ -759,11 +764,6 @@ phpbb.search.navigateResults = function($input, $container, $resultContainer) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Close the results
|
|
||||||
case keymap.ESC:
|
|
||||||
phpbb.search.closeResults($input, $container);
|
|
||||||
break;
|
|
||||||
|
|
||||||
// Navigate the results
|
// Navigate the results
|
||||||
case keymap.ARROW_DOWN:
|
case keymap.ARROW_DOWN:
|
||||||
case keymap.ARROW_UP:
|
case keymap.ARROW_UP:
|
||||||
|
|
Loading…
Add table
Reference in a new issue