mirror of
https://github.com/jahruz67/wisp-open.git
synced 2026-08-08 18:14:08 +00:00
feat: implement cross-platform hotkey management and update frontend build infrastructure
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
//go:build !windows
|
||||
|
||||
package hotkey
|
||||
|
||||
// AsyncKeyDown is a stub on non-Windows platforms.
|
||||
func AsyncKeyDown(vk int) bool {
|
||||
return false
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user