Skip to content

Commit

Permalink
all: fix register on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed May 26, 2021
1 parent 9d62782 commit 2997bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hotkey_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (hk *Hotkey) register() error {
for _, m := range hk.mods {
mod = mod | uint8(m)
}
ok, err := win.RegisterHotKey(0, 1, uintptr(mod), uintptr(KeyS))
ok, err := win.RegisterHotKey(0, 1, uintptr(mod), uintptr(hk.key))
if !ok {
return err
}
Expand Down

0 comments on commit 2997bd2

Please sign in to comment.