Skip to content

Commit 4070c28

Browse files
committed
fix(clipboard): remove default hotkey configuration
- Set all hotkeys to unassigned (0) by default instead of Cmd+Shift+V - Users need to manually configure hotkeys if desired - Fixes double-click auto-paste functionality by ensuring proper configuration initialization
1 parent 5e72ca8 commit 4070c28

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

DockMasterPro/Plugins/ClipboardPlugin/ClipboardPlugin.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,11 +511,9 @@ final class ClipboardPlugin: WidgetPlugin, ShortcutPlugin, PluginLocalizable {
511511
_ = database.setConfigBool(key: Key.snippetsEnabled, value: true)
512512
_ = database.setConfigBool(key: Key.showMenuBarIcon, value: true)
513513

514-
// 默认快捷键:Cmd+Shift+V
515-
_ = database.setConfigInt(key: Key.hotkeyKeyCode, value: 9) // V key
516-
_ = database.setConfigInt(key: Key.hotkeyModifiers, value: Int(NSEvent.ModifierFlags.command.rawValue | NSEvent.ModifierFlags.shift.rawValue))
517-
518-
// 其他快捷键默认未设置
514+
// 所有快捷键默认未设置
515+
_ = database.setConfigInt(key: Key.hotkeyKeyCode, value: 0)
516+
_ = database.setConfigInt(key: Key.hotkeyModifiers, value: 0)
519517
_ = database.setConfigInt(key: Key.snippetsHotkeyKeyCode, value: 0)
520518
_ = database.setConfigInt(key: Key.snippetsHotkeyModifiers, value: 0)
521519
_ = database.setConfigInt(key: Key.importExportHotkeyKeyCode, value: 0)

0 commit comments

Comments
 (0)