Skip to content

Commit 2997bd2

Browse files
committed
all: fix register on windows
1 parent 9d62782 commit 2997bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hotkey_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (hk *Hotkey) register() error {
2323
for _, m := range hk.mods {
2424
mod = mod | uint8(m)
2525
}
26-
ok, err := win.RegisterHotKey(0, 1, uintptr(mod), uintptr(KeyS))
26+
ok, err := win.RegisterHotKey(0, 1, uintptr(mod), uintptr(hk.key))
2727
if !ok {
2828
return err
2929
}

0 commit comments

Comments
 (0)