mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
pages/search: add hints for actionbox
This commit is contained in:
parent
6b3fa3fbb3
commit
85a8aaa8ff
3 changed files with 37 additions and 6 deletions
|
|
@ -2,7 +2,11 @@ import { actionboxHandlers } from './actionboxHandlers.js'
|
|||
|
||||
const focusButtonsWithArrows = (e, abortCallback) => {
|
||||
if (['ArrowUp', 'ArrowDown'].includes(e.key)) {
|
||||
e.preventDefault()
|
||||
if (document.activeElement.dataset.arrowNavigation === 'ignore') {
|
||||
return
|
||||
} else {
|
||||
e.preventDefault()
|
||||
}
|
||||
|
||||
const buttons = document.querySelectorAll('#searchResults > button')
|
||||
if (buttons.length === 0) { return }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue