Skip to content

Commit

Permalink
FileView: only invert selection of active FileView
Browse files Browse the repository at this point in the history
  • Loading branch information
warpdesign committed Apr 16, 2024
1 parent f9d7e49 commit 8911d3c
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 @@ -269,7 +269,7 @@ const FileView = observer(({ hide }: Props) => {
global: true,
combo: 'mod + i',
label: t('SHORTCUT.ACTIVE_VIEW.SELECT_INVERT'),
onKeyDown: () => onInvertSelection(cache),
onKeyDown: () => isViewActive && onInvertSelection(cache),
group: t('SHORTCUT.GROUP.ACTIVE_VIEW'),
},
...(!isMac || window.ENV.CY
Expand Down

0 comments on commit 8911d3c

Please sign in to comment.