Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert #395 and implement with alter method #398

Merged
merged 15 commits into from
Feb 13, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Easydict/NewApp/Feature/Shortcut/Shortcut+Default.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import Magnet
extension Shortcut {
// set defalut for app shortcut
func setDefaultForAppShortcut() {
Defaults[.selectionShortcut] = KeyCombo(key: .d, cocoaModifiers: .option)
CanglongCl marked this conversation as resolved.
Show resolved Hide resolved
Defaults[.snipShortcut] = KeyCombo(key: .s, cocoaModifiers: .option)
Defaults[.inputShortcut] = KeyCombo(key: .a, cocoaModifiers: .option)
Defaults[.screenshotOCRShortcut] = KeyCombo(key: .f, cocoaModifiers: [.option, .shift])
Defaults[.showMiniWindowShortcut] = KeyCombo(key: .s, cocoaModifiers: .option)
tisfeng marked this conversation as resolved.
Show resolved Hide resolved

Defaults[.clearInputShortcut] = KeyCombo(key: .k, cocoaModifiers: .command)
Defaults[.clearAllShortcut] = KeyCombo(key: .k, cocoaModifiers: [.command, .shift])
Defaults[.copyShortcut] = KeyCombo(key: .c, cocoaModifiers: [.command, .shift])
Expand Down