Added MacOS support (#403)

This commit is contained in:
Harry Yu
2023-12-06 23:23:25 -08:00
committed by GitHub
parent 18d079b811
commit 588b801a26
10 changed files with 109 additions and 19 deletions

View File

@@ -217,7 +217,9 @@ export const KeyToElectron = {
Backslash: '\\',
BracketRight: ']',
Quote: "'",
Ctrl: 'CmdOrCtrl',
// Do not change Ctrl to CmdOrCtrl. It causes registered shortcuts to
// often not work on Mac for unknown reasons.
Ctrl: 'Ctrl',
Alt: 'Alt',
Shift: 'Shift'
}