From 8911d3c89de8b1099612c5c96559516a0f286e3b Mon Sep 17 00:00:00 2001 From: Nicolas Ramz Date: Tue, 16 Apr 2024 11:18:03 +0200 Subject: [PATCH] FileView: only invert selection of active FileView --- src/components/FileView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FileView.tsx b/src/components/FileView.tsx index a9edc53..04e1feb 100644 --- a/src/components/FileView.tsx +++ b/src/components/FileView.tsx @@ -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