aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndrew Thomas Sartor <andrew@sartor.net>2024-04-19 11:25:38 +0900
committerGitHub <noreply@github.com>2024-04-19 02:25:38 +0000
commit65ee2c8f6fe3ed3f67c697146ce683a0f918d85a (patch)
tree41179e63b93466e037481f38fc9dfeb320282bc7 /ext
parent8b38493f4e12d3f1f04d4d99e04e231ea4071163 (diff)
Refocuses search input on backspace (#840)
Fixes #775. Note that this behavior gets overridden if backspace is set as a shortcut action.
Diffstat (limited to 'ext')
-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 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});