Add tests and multi-platform keybind support (Linux, macOS, Windows)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 18:11:12 +03:00
parent cecd50361c
commit 4f94c4f20b
6 changed files with 340 additions and 20 deletions
+14
View File
@@ -0,0 +1,14 @@
//go:build darwin
package main
import "golang.design/x/hotkey"
var modMap = map[string]hotkey.Modifier{
"ctrl": hotkey.ModCtrl,
"shift": hotkey.ModShift,
"alt": hotkey.ModOption,
"cmd": hotkey.ModCmd,
"win": hotkey.ModCmd,
"super": hotkey.ModCmd,
}