Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Fix numpad enter functioning differently than enter on the search page (
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Jan 23, 2021
1 parent cf57c4e commit 55df9dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/bg/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 55df9dc

Please sign in to comment.