fix(app): mod+f always opens search
This commit is contained in:
parent
2bb3dc585b
commit
3448118be8
3 changed files with 53 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue