fix: typing-focus shouldn't be triggered while typing in input fields like list filter
Massimo Melina committed
Oct 4, 2024 at 23:49 UTC
322603d04bce458b78c57251155e2e922871c0b5
1 file changed
+1
frontend/src/BrowseFiles.ts
+1
@@ -97,6 +97,7 @@ function FilesList() {
97
const navigate = useNavigate()
98
const timeout = useRef()
99
useEventListener('keydown', ev => {
100
+ if (ev.srcElement !== document.body) return
101
if (isCtrlKey(ev as any) === 'Backspace' && location.pathname > '/')
102
return navigate(location.pathname + '..')
103
const { key } = ev