diff options
author | Andrew Thomas Sartor <andrew@sartor.net> | 2024-04-19 11:25:38 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 02:25:38 +0000 |
commit | 65ee2c8f6fe3ed3f67c697146ce683a0f918d85a (patch) | |
tree | 41179e63b93466e037481f38fc9dfeb320282bc7 /ext/js | |
parent | 8b38493f4e12d3f1f04d4d99e04e231ea4071163 (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/js')
-rw-r--r-- | ext/js/display/search-display-controller.js | 2 |
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}); |