Skip to content

Commit

Permalink
Allow enter button to search on android (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube authored Jul 10, 2024
1 parent 156ceba commit 10b8261
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/display/search-display-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ export class SearchDisplayController {
*/
_onSearchKeydown(e) {
if (e.isComposing) { return; }
const {code} = e;
if (!((code === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; }
const {code, key} = e;
if (!((code === 'Enter' || key === 'Enter' || code === 'NumpadEnter') && !e.shiftKey)) { return; }

// Search
const element = /** @type {HTMLElement} */ (e.currentTarget);
Expand Down

0 comments on commit 10b8261

Please sign in to comment.