From 5176b0e9dd6e8b9440ca9a8568eec0d6340692cb Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 16 May 2014 18:56:03 -0400 Subject: [PATCH] Added proper Super handling on Windows. Meta isn't used here and the modifiers were already in the correct order. --- area_windows.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 }