Fix numpad enter functioning differently than enter on the search page (#1289)
This commit is contained in:
parent
cf57c4e38d
commit
55df9dc7cd
@ -152,7 +152,8 @@ class DisplaySearch extends Display {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_onSearchKeydown(e) {
|
_onSearchKeydown(e) {
|
||||||
if (e.code !== 'Enter' || e.shiftKey) { return; }
|
const {code} = e;
|
||||||
|
if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; }
|
||||||
|
|
||||||
// Search
|
// Search
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
Loading…
Reference in New Issue
Block a user