Skip to content

Commit 16eaec3

Browse files
committed
Merge branch 'copilot/fix-hotkey-settings-reset' into dev
2 parents 30cb19c + 914a4d5 commit 16eaec3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Easydict/Swift/Feature/Shortcut/View/KeyHolderWrapper.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct KeyHolderWrapper: NSViewRepresentable {
4242
return recordView
4343
}
4444

45-
func updateNSView(_: NSViewType, context _: Context) {}
45+
func updateNSView(_ nsView: NSViewType, context: Context) {}
4646

4747
// MARK: Private
4848

@@ -136,6 +136,9 @@ extension KeyHolderWrapper {
136136
.pasteboardTranslate: DefaultsKeyWrapper(.pasteboardTranslateShortcut),
137137
.translateAndReplace: DefaultsKeyWrapper(.translateAndReplaceShortcut),
138138
.polishAndReplace: DefaultsKeyWrapper(.polishAndReplaceShortcut),
139+
.screenshotOCR: DefaultsKeyWrapper(.screenshotOCRShortcut),
140+
.pasteboardOCR: DefaultsKeyWrapper(.pasteboardOCRShortcut),
141+
.showOCRWindow: DefaultsKeyWrapper(.showOCRWindowShortcut),
139142
.clearInput: DefaultsKeyWrapper(.clearInputShortcut),
140143
.clearAll: DefaultsKeyWrapper(.clearAllShortcut),
141144
.copy: DefaultsKeyWrapper(.copyShortcut),

0 commit comments

Comments
 (0)