From c3289d09c0a1d25aecdc905dd4c4376c606a8e09 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 21 Apr 2022 08:29:41 +0200 Subject: [PATCH] fix system commands --- packages/web/src/commands/CommandListener.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/web/src/commands/CommandListener.svelte b/packages/web/src/commands/CommandListener.svelte index 6a693995..d0479991 100644 --- a/packages/web/src/commands/CommandListener.svelte +++ b/packages/web/src/commands/CommandListener.svelte @@ -2,7 +2,7 @@ import { commandsCustomized, visibleCommandPalette } from '../stores'; import { get } from 'svelte/store'; import { runGroupCommand } from './runCommand'; - import { resolveKeyText } from '../utility/common'; + import { isMac, resolveKeyText } from '../utility/common'; export function handleCommandKeyDown(e) { let keyText = ''; @@ -42,6 +42,10 @@ commandsFiltered = commandsFiltered.filter(x => !x.systemCommand); } + if (commandsFiltered.every(x => x.systemCommand) && !isMac()) { + return; + } + const notGroup = commandsFiltered.filter(x => x.enabled && !x.isGroupCommand); if (notGroup.length > 1) {