feat: implement cross-platform hotkey management and update frontend build infrastructure

This commit is contained in:
jahruz67
2026-05-08 15:54:36 -07:00
parent 25ab3accfa
commit 0cd56ca083
24 changed files with 453 additions and 325 deletions
+8
View File
@@ -0,0 +1,8 @@
//go:build !windows
package hotkey
// AsyncKeyDown is a stub on non-Windows platforms.
func AsyncKeyDown(vk int) bool {
return false
}
+10
View File
@@ -0,0 +1,10 @@
//go:build windows
package hotkey
import "wis-free-v3/internal/xhotkey/internal/win"
// AsyncKeyDown reports whether the virtual key is currently held (high bit of GetAsyncKeyState).
func AsyncKeyDown(vk int) bool {
return win.GetAsyncKeyState(vk)&0x8000 != 0
}