aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/win.c b/src/win.c
index 6838423..3d245f2 100644
--- a/src/win.c
+++ b/src/win.c
@@ -579,7 +579,8 @@ initKeyEvent(PuglKeyEvent* event,
const PuglKey special = keySymToSpecial(vkey, ext);
if (special) {
- event->key = (uint32_t)special;
+ event->key = (uint32_t)special;
+ event->state = puglFilterMods(event->state, special);
} else if (!dead) {
// Translate unshifted key
BYTE keyboardState[256] = PUGL_INIT_STRUCT;