From 0319306f20d2a5989d1f5639a47d77cebeac2f29 Mon Sep 17 00:00:00 2001 From: Christopher Plewright Date: Tue, 22 Nov 2022 12:58:27 +0000 Subject: patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll event Problem: MS-Windows: modifier keys do not work with mouse scroll events. Solution: Use K_SPECIAL instead of CSI for the modifier keys. (Christopher Plewright, closes #11587) --- src/os_win32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/os_win32.c') diff --git a/src/os_win32.c b/src/os_win32.c index 36051f485..ead50e186 100644 --- a/src/os_win32.c +++ b/src/os_win32.c @@ -2047,7 +2047,8 @@ mch_inchar( { if (modifiers > 0) { - typeahead[typeaheadlen++] = CSI; + // use K_SPECIAL instead of CSI to make mappings work + typeahead[typeaheadlen++] = K_SPECIAL; typeahead[typeaheadlen++] = KS_MODIFIER; typeahead[typeaheadlen++] = modifiers; } -- cgit v1.2.1