From 9b28e8ecf84027c4b52a015b389c6c1730732ce0 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Sat, 11 May 2024 22:56:31 -0400 Subject: Allow ctrl + backspace to refocus the search (#914) --- ext/js/display/search-display-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') && -- cgit v1.2.3