@samitouri / QOSami-HFS / commits / d0d8751f

fix: (regression beta) typing-focus stopped working in beta5

Massimo Melina committed Oct 8, 2024 at 14:25 UTC d0d8751f1ce004be36567df67180ca55b3a2f2f6
1 file changed +1 -1
frontend/src/BrowseFiles.ts
+1 -1
@@ -97,7 +97,7 @@ function FilesList() {
97 const navigate = useNavigate()
98 const timeout = useRef()
99 useEventListener('keydown', ev => {
100 - if (ev.srcElement !== document.body) return
100 + if (ev.target !== document.body && !(ev.target && ref.current?.contains(ev.target as any))) return
101 if (isCtrlKey(ev as any) === 'Backspace' && location.pathname > '/')
102 return navigate(location.pathname + '..')
103 const { key } = ev