Fix numpad enter functioning differently than enter on the search page (#1289)

This commit is contained in:
toasted-nutbread 2021-01-22 20:46:48 -05:00 committed by GitHub
parent cf57c4e38d
commit 55df9dc7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();