diff --git a/Easydict/NewApp/Feature/Shortcut/Shortcut+Default.swift b/Easydict/NewApp/Feature/Shortcut/Shortcut+Default.swift index 1de845dca..d48d74d1d 100644 --- a/Easydict/NewApp/Feature/Shortcut/Shortcut+Default.swift +++ b/Easydict/NewApp/Feature/Shortcut/Shortcut+Default.swift @@ -12,20 +12,20 @@ import Magnet extension Shortcut { // set defalut for app shortcut func setDefaultForAppShortcut() { - Defaults[.clearInputShortcut] = KeyCombo(QWERTYKeyCode: 40, cocoaModifiers: .command) - Defaults[.clearAllShortcut] = KeyCombo(QWERTYKeyCode: 40, cocoaModifiers: [.command, .shift]) - Defaults[.copyShortcut] = KeyCombo(QWERTYKeyCode: 8, cocoaModifiers: [.command, .shift]) - Defaults[.copyFirstResultShortcut] = KeyCombo(QWERTYKeyCode: 38, cocoaModifiers: [.command, .shift]) - Defaults[.focusShortcut] = KeyCombo(QWERTYKeyCode: 34, cocoaModifiers: .command) - Defaults[.playShortcut] = KeyCombo(QWERTYKeyCode: 1, cocoaModifiers: .command) - Defaults[.retryShortcut] = KeyCombo(QWERTYKeyCode: 15, cocoaModifiers: .command) - Defaults[.toggleShortcut] = KeyCombo(QWERTYKeyCode: 17, cocoaModifiers: .command) - Defaults[.pinShortcut] = KeyCombo(QWERTYKeyCode: 35, cocoaModifiers: .command) - Defaults[.hideShortcut] = KeyCombo(QWERTYKeyCode: 16, cocoaModifiers: .command) - Defaults[.increaseFontSize] = KeyCombo(QWERTYKeyCode: 24, cocoaModifiers: .command) - Defaults[.decreaseFontSize] = KeyCombo(QWERTYKeyCode: 27, cocoaModifiers: .command) - Defaults[.googleShortcut] = KeyCombo(QWERTYKeyCode: 36, cocoaModifiers: .command) - Defaults[.eudicShortcut] = KeyCombo(QWERTYKeyCode: 36, cocoaModifiers: [.command, .shift]) - Defaults[.appleDictionaryShortcut] = KeyCombo(QWERTYKeyCode: 2, cocoaModifiers: [.command, .shift]) + Defaults[.clearInputShortcut] = KeyCombo(key: .k, cocoaModifiers: .command) + Defaults[.clearAllShortcut] = KeyCombo(key: .k, cocoaModifiers: [.command, .shift]) + Defaults[.copyShortcut] = KeyCombo(key: .c, cocoaModifiers: [.command, .shift]) + Defaults[.copyFirstResultShortcut] = KeyCombo(key: .j, cocoaModifiers: [.command, .shift]) + Defaults[.focusShortcut] = KeyCombo(key: .i, cocoaModifiers: .command) + Defaults[.playShortcut] = KeyCombo(key: .s, cocoaModifiers: .command) + Defaults[.retryShortcut] = KeyCombo(key: .r, cocoaModifiers: .command) + Defaults[.toggleShortcut] = KeyCombo(key: .t, cocoaModifiers: .command) + Defaults[.pinShortcut] = KeyCombo(key: .p, cocoaModifiers: .command) + Defaults[.hideShortcut] = KeyCombo(key: .y, cocoaModifiers: .command) + Defaults[.increaseFontSize] = KeyCombo(key: .keypadPlus, cocoaModifiers: .command) + Defaults[.decreaseFontSize] = KeyCombo(key: .keypadMinus, cocoaModifiers: .command) + Defaults[.googleShortcut] = KeyCombo(key: .return, cocoaModifiers: .command) + Defaults[.eudicShortcut] = KeyCombo(key: .return, cocoaModifiers: [.command, .shift]) + Defaults[.appleDictionaryShortcut] = KeyCombo(key: .d, cocoaModifiers: [.command, .shift]) } }