mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 15:25:59 +00:00
handle ctrl & command key
This commit is contained in:
@@ -64,3 +64,10 @@ export function resolveKeyText(keyText: string): string {
|
||||
}
|
||||
return keyText.replace('CtrlOrCommand+', 'Ctrl+');
|
||||
}
|
||||
|
||||
export function isCtrlOrCommandKey(event) {
|
||||
if (isMac()) {
|
||||
return event.metaKey;
|
||||
}
|
||||
return event.ctrlKey;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user