Compare commits
1 Commits
2b47851785
...
c7b2ab9012
Author | SHA1 | Date | |
---|---|---|---|
c7b2ab9012
|
@ -21,9 +21,6 @@ let
|
|||||||
selected = -1,
|
selected = -1,
|
||||||
lastCollapsed
|
lastCollapsed
|
||||||
const
|
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.
|
// This is a Firefox only option. For some reason older versions of Firefox can't set outline: none.
|
||||||
focusInvisible = { __proto__: null, focusVisible: false },
|
focusInvisible = { __proto__: null, focusVisible: false },
|
||||||
isComment = () => query[selected].classList.contains('comtr'),
|
isComment = () => query[selected].classList.contains('comtr'),
|
||||||
@ -38,8 +35,6 @@ const
|
|||||||
query[selected].lastChild.firstChild.firstChild.focus(focusInvisible)
|
query[selected].lastChild.firstChild.firstChild.focus(focusInvisible)
|
||||||
},
|
},
|
||||||
keydown = event => {
|
keydown = event => {
|
||||||
if (input.has(globalThis.document.activeElement.tagName))
|
|
||||||
return
|
|
||||||
switch (event.key) {
|
switch (event.key) {
|
||||||
case 'j':
|
case 'j':
|
||||||
const lastIndex = query.length - 1
|
const lastIndex = query.length - 1
|
||||||
|
Reference in New Issue
Block a user