diff options
author | Christopher Plewright <chris@createng.com> | 2022-12-30 16:54:58 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-12-30 16:54:58 +0000 |
commit | 7b0afc1d7698a79423c7b066a5d8d20dbb8a295a (patch) | |
tree | 91b54b32537fc514333de415153a6cc6cb09efd5 /src/gui_w32.c | |
parent | 96dd34e53492913029323dad902831380fa460d0 (diff) | |
download | vim-git-7b0afc1d7698a79423c7b066a5d8d20dbb8a295a.tar.gz |
patch 9.0.1112: test_mswin_event() can hangv9.0.1112
Problem: test_mswin_event() can hang.
Solution: Add the "execute" argument to process events right away.
(Christopher Plewright, closes #11760)
Diffstat (limited to 'src/gui_w32.c')
-rw-r--r-- | src/gui_w32.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui_w32.c b/src/gui_w32.c index b4a33d986..dfbb661eb 100644 --- a/src/gui_w32.c +++ b/src/gui_w32.c @@ -888,6 +888,12 @@ _OnChar( modifiers = get_active_modifiers(); ch = simplify_key(ch, &modifiers); + + // Some keys need adjustment when the Ctrl modifier is used. + ++no_reduce_keys; + ch = may_adjust_key_for_ctrl(modifiers, ch); + --no_reduce_keys; + // remove the SHIFT modifier for keys where it's already included, e.g., // '(' and '*' modifiers = may_remove_shift_modifier(modifiers, ch); |