fix system commands

This commit is contained in:
Jan Prochazka 2022-04-21 08:29:41 +02:00
parent 233fed30cb
commit c3289d09c0

View File

@ -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) {