1
0
forked from aniani/vim

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)
This commit is contained in:
Christopher Plewright
2022-11-22 12:58:27 +00:00
committed by Bram Moolenaar
parent 35fc61cb5b
commit 0319306f20
4 changed files with 27 additions and 29 deletions

View File

@@ -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;
}