From 2997bd257bca1a9b2886e616a5a167c3138b5962 Mon Sep 17 00:00:00 2001 From: Changkun Ou Date: Wed, 26 May 2021 09:53:39 +0200 Subject: [PATCH] all: fix register on windows --- hotkey_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotkey_windows.go b/hotkey_windows.go index c539fb2..a903377 100644 --- a/hotkey_windows.go +++ b/hotkey_windows.go @@ -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 }