summaryrefslogtreecommitdiff
path: root/src/os_win32.c
diff options
context:
space:
mode:
authorChristopher Plewright <chris@createng.com>2022-11-22 12:58:27 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-22 12:58:27 +0000
commit0319306f20d2a5989d1f5639a47d77cebeac2f29 (patch)
treef68699815c966afae4f3f45ca4ec1d5805e5a314 /src/os_win32.c
parent35fc61cb5b5eba8bbb9d8f0700332fbab38f40ca (diff)
downloadvim-git-0319306f20d2a5989d1f5639a47d77cebeac2f29.tar.gz
patch 9.0.0918: MS-Windows: modifier keys do not work with mouse scroll eventv9.0.0918
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)
Diffstat (limited to 'src/os_win32.c')
-rw-r--r--src/os_win32.c3
1 files changed, 2 insertions, 1 deletions
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;
}