Compare commits

..

1 Commits

Author SHA1 Message Date
2b47851785
Rewrite 2025-05-16 01:03:32 -04:00

View File

@ -21,6 +21,9 @@ let
selected = -1,
lastCollapsed
const
input = new Set()
.add('INPUT')
.add('TEXTAREA'),
// This is a Firefox only option. For some reason older versions of Firefox can't set outline: none.
focusInvisible = { __proto__: null, focusVisible: false },
isComment = () => query[selected].classList.contains('comtr'),
@ -35,6 +38,8 @@ const
query[selected].lastChild.firstChild.firstChild.focus(focusInvisible)
},
keydown = event => {
if (input.has(globalThis.document.activeElement.tagName))
return
switch (event.key) {
case 'j':
const lastIndex = query.length - 1