aboutsummaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg')
-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();