aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/search-display-controller.js
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-05-11 22:56:31 -0400
committerGitHub <noreply@github.com>2024-05-12 02:56:31 +0000
commit9b28e8ecf84027c4b52a015b389c6c1730732ce0 (patch)
tree2c4bc43c9bd281493a9f21eb1c5395aa46814d50 /ext/js/display/search-display-controller.js
parentdccacabbefb3c777d8f0ae14ab4eefa6e505ec78 (diff)
Allow ctrl + backspace to refocus the search (#914)
Diffstat (limited to 'ext/js/display/search-display-controller.js')
-rw-r--r--ext/js/display/search-display-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js
index a6040500..9b2311d1 100644
--- a/ext/js/display/search-display-controller.js
+++ b/ext/js/display/search-display-controller.js
@@ -158,7 +158,7 @@ export class SearchDisplayController {
if (
activeElement !== this._queryInput &&
!this._isElementInput(activeElement) &&
- !e.ctrlKey &&
+ (!e.ctrlKey || e.key === 'Backspace') &&
!e.metaKey &&
!e.altKey &&
(e.key.length === 1 || e.key === 'Backspace') &&