mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +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');
|
||||
|
||||
switch (key) {
|
||||
// Close the results
|
||||
case keymap.ESC:
|
||||
phpbb.search.closeResults($input, $container);
|
||||
break;
|
||||
|
||||
// Set the value for the selected result
|
||||
case keymap.ENTER:
|
||||
if ($active.length) {
|
||||
|
@ -759,11 +764,6 @@ phpbb.search.navigateResults = function($input, $container, $resultContainer) {
|
|||
event.preventDefault();
|
||||
break;
|
||||
|
||||
// Close the results
|
||||
case keymap.ESC:
|
||||
phpbb.search.closeResults($input, $container);
|
||||
break;
|
||||
|
||||
// Navigate the results
|
||||
case keymap.ARROW_DOWN:
|
||||
case keymap.ARROW_UP:
|
||||
|
|
Loading…
Add table
Reference in a new issue