fix(app): mod+f always opens search

This commit is contained in:
Adam 2026-03-05 06:57:50 -06:00
commit 3448118be8
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
3 changed files with 53 additions and 3 deletions

View file

@ -234,7 +234,6 @@ export function FileTabContent(props: { tab: string }) {
if (typeof window === "undefined") return
const onKeyDown = (event: KeyboardEvent) => {
if (event.defaultPrevented) return
if (tabs().active() !== props.tab) return
if (!(event.metaKey || event.ctrlKey) || event.altKey || event.shiftKey) return
if (event.key.toLowerCase() !== "f") return