summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--area_windows.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/area_windows.go b/area_windows.go
index ee2e4cf..b0f8e74 100644
--- a/area_windows.go
+++ b/area_windows.go
@@ -439,6 +439,7 @@ var (
func getModifiers() (m Modifiers) {
down := func(x uintptr) bool {
+ // TODO this might not be related to the actual message; GLFW does it
r1, _, _ := _getKeyState.Call(x)
return (r1 & 0x80) != 0
}
@@ -452,7 +453,9 @@ func getModifiers() (m Modifiers) {
if down(_VK_SHIFT) {
m |= Shift
}
- // TODO windows key (super)
+ if down(_VK_LWIN) || down(_VK_RWIN) {
+ m |= Super
+ }
return m
}