]> granicus.if.org Git - vim/commitdiff
patch 9.0.0120: MS-Windows GUI: cannot use AltGr + Space v9.0.0120
authorAnton Sharonov <anton.sharonov@gmail.com>
Sun, 31 Jul 2022 11:26:05 +0000 (12:26 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 31 Jul 2022 11:26:05 +0000 (12:26 +0100)
Problem:    MS-Windows GUI: cannot use AltGr + Space.
Solution:   Check for VK_MENU instead of VK_LMENU. (Anton Sharonov,
            closes #10820, closes #10753)

src/gui_w32.c
src/version.c

index 397dd7f9028cd2d60ecd4727c5323dd9a86f6bcd..20b0a5f64e077a2d9e500c560b652fe3847f5993 100644 (file)
@@ -2047,7 +2047,7 @@ process_message(void)
        {
            // ignore VK_SPACE when ALT key pressed: system menu
            if (special_keys[i].key_sym == vk
-                   && (vk != VK_SPACE || !(GetKeyState(VK_LMENU) & 0x8000)))
+                   && (vk != VK_SPACE || !(GetKeyState(VK_MENU) & 0x8000)))
            {
                /*
                 * Behave as expected if we have a dead key and the special key
@@ -2055,7 +2055,8 @@ process_message(void)
                 * character output (such as a NUMPAD printable character or
                 * the TAB key, etc...).
                 */
-               if (dead_key == DEAD_KEY_SET_DEFAULT && (special_keys[i].vim_code0 == 'K'
+               if (dead_key == DEAD_KEY_SET_DEFAULT
+                       && (special_keys[i].vim_code0 == 'K'
                                                || vk == VK_TAB || vk == CAR))
                {
                    outputDeadKey_rePost(msg);
index 0a38f39677d766b2c3b4817ce76bb233cce06a07..c5b76797460f0f9f4ca05bea431792c2e8e87d9c 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    120,
 /**/
     119,
 /**/