summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-22 20:46:48 -0500
committerGitHub <noreply@github.com>2021-01-22 20:46:48 -0500
commit55df9dc7cdae33b782d91ac84f0ea3d8998a3b9b (patch)
tree5d37c4052f12a208deccf0d8c69bcb4fddf9961b
parentcf57c4e38d619d979ca39328bd9ec4821f284816 (diff)
Fix numpad enter functioning differently than enter on the search page (#1289)
-rw-r--r--ext/bg/js/search.js3
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();