diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-22 20:46:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-22 20:46:48 -0500 |
commit | 55df9dc7cdae33b782d91ac84f0ea3d8998a3b9b (patch) | |
tree | 5d37c4052f12a208deccf0d8c69bcb4fddf9961b /ext | |
parent | cf57c4e38d619d979ca39328bd9ec4821f284816 (diff) |
Fix numpad enter functioning differently than enter on the search page (#1289)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/search.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index e2497264..69edfabd 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -152,7 +152,8 @@ class DisplaySearch extends Display { } _onSearchKeydown(e) { - if (e.code !== 'Enter' || e.shiftKey) { return; } + const {code} = e; + if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; } // Search e.preventDefault(); |