mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
pages/search: close on Esc
This commit is contained in:
parent
c6f4fda801
commit
ad9f5312f3
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,9 @@ export const attachInputHandlers = (store) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
if (e.key === 'Escape') {
|
if (e.key === 'Escape') {
|
||||||
searchBox.focus()
|
document.activeElement === searchBox
|
||||||
|
? store.actions.closeCurrentTab()
|
||||||
|
: searchBox.focus()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue