Skip to content

Commit

Permalink
FileView: fixed open file shortcut on Linux/Win
Browse files Browse the repository at this point in the history
Pressing `ctrl+o` would incorrectly open in another view
where it should open in current view.
  • Loading branch information
warpdesign committed May 1, 2024
1 parent 68ecfc0 commit 4844f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FileView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const FileView = observer(({ hide }: Props) => {

const onOpenFile = (e: KeyboardEvent): void => {
if (isViewActive && cursor) {
openFileOrDirectory(cursor, isMac ? e.altKey : e.ctrlKey)
openFileOrDirectory(cursor, isMac ? e.altKey : e.shiftKey)
}
}

Expand Down

0 comments on commit 4844f0c

Please sign in to comment.