Skip to content

Commit

Permalink
Allow ctrl + backspace to refocus the search
Browse files Browse the repository at this point in the history
<rikaitan.link>OWIyOGU4ZWNmODQwMjdjNGI1MmEwMTViMzg5YzZjMTczMDczMmNlMAo=</rikaitan.link>
  • Loading branch information
Kuuuube authored and tatsumoto-ren committed May 12, 2024
1 parent 04eb2d2 commit 81d87e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/display/search-display-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') &&
Expand Down

0 comments on commit 81d87e1

Please sign in to comment.