From 65ee2c8f6fe3ed3f67c697146ce683a0f918d85a Mon Sep 17 00:00:00 2001 From: Andrew Thomas Sartor Date: Fri, 19 Apr 2024 11:25:38 +0900 Subject: Refocuses search input on backspace (#840) Fixes #775. Note that this behavior gets overridden if backspace is set as a shortcut action. --- ext/js/display/search-display-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/js') diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index 00f5efc6..492e6ac4 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -163,7 +163,7 @@ export class SearchDisplayController { !e.ctrlKey && !e.metaKey && !e.altKey && - e.key.length === 1 && + (e.key.length === 1 || e.key === 'Backspace') && e.key !== ' ' ) { this._queryInput.focus({preventScroll: true}); -- cgit v1.2.3