mirror of
https://github.com/dbgate/dbgate
synced 2024-11-23 00:43:10 +00:00
fix system commands
This commit is contained in:
parent
233fed30cb
commit
c3289d09c0
@ -2,7 +2,7 @@
|
|||||||
import { commandsCustomized, visibleCommandPalette } from '../stores';
|
import { commandsCustomized, visibleCommandPalette } from '../stores';
|
||||||
import { get } from 'svelte/store';
|
import { get } from 'svelte/store';
|
||||||
import { runGroupCommand } from './runCommand';
|
import { runGroupCommand } from './runCommand';
|
||||||
import { resolveKeyText } from '../utility/common';
|
import { isMac, resolveKeyText } from '../utility/common';
|
||||||
|
|
||||||
export function handleCommandKeyDown(e) {
|
export function handleCommandKeyDown(e) {
|
||||||
let keyText = '';
|
let keyText = '';
|
||||||
@ -42,6 +42,10 @@
|
|||||||
commandsFiltered = commandsFiltered.filter(x => !x.systemCommand);
|
commandsFiltered = commandsFiltered.filter(x => !x.systemCommand);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (commandsFiltered.every(x => x.systemCommand) && !isMac()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const notGroup = commandsFiltered.filter(x => x.enabled && !x.isGroupCommand);
|
const notGroup = commandsFiltered.filter(x => x.enabled && !x.isGroupCommand);
|
||||||
|
|
||||||
if (notGroup.length > 1) {
|
if (notGroup.length > 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user