Mercurial > vim
comparison src/gui_w32.c @ 32395:2ed95122d59c v9.0.1529
patch 9.0.1529: code style test doesn't check for space after "if"
Commit: https://github.com/vim/vim/commit/c9471b18728b1b37c04845ca2bc59fc981308b2d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 9 15:00:00 2023 +0100
patch 9.0.1529: code style test doesn't check for space after "if"
Problem: Code style test doesn't check for space after "if".
Solution: Add a test for space.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 May 2023 16:15:05 +0200 |
parents | 97255d909654 |
children | bb5458706799 |
comparison
equal
deleted
inserted
replaced
32394:0db2ebbe7711 | 32395:2ed95122d59c |
---|---|
8734 int mods = (int)dict_get_number(args, "modifiers"); | 8734 int mods = (int)dict_get_number(args, "modifiers"); |
8735 | 8735 |
8736 // If there are modifiers in the args, and it is not a keyup event and | 8736 // If there are modifiers in the args, and it is not a keyup event and |
8737 // vkCode is not a modifier key, then we generate virtual modifier key | 8737 // vkCode is not a modifier key, then we generate virtual modifier key |
8738 // messages before sending the actual key message. | 8738 // messages before sending the actual key message. |
8739 if(mods && STRICMP(event, "keydown") == 0 && !isModKey) | 8739 if (mods && STRICMP(event, "keydown") == 0 && !isModKey) |
8740 { | 8740 { |
8741 int n = 0; | 8741 int n = 0; |
8742 if (mods & MOD_MASK_SHIFT) | 8742 if (mods & MOD_MASK_SHIFT) |
8743 { | 8743 { |
8744 modkeys[n].type = INPUT_KEYBOARD; | 8744 modkeys[n].type = INPUT_KEYBOARD; |
8767 inputs[0].type = INPUT_KEYBOARD; | 8767 inputs[0].type = INPUT_KEYBOARD; |
8768 inputs[0].ki.wVk = vkCode; | 8768 inputs[0].ki.wVk = vkCode; |
8769 if (STRICMP(event, "keyup") == 0) | 8769 if (STRICMP(event, "keyup") == 0) |
8770 { | 8770 { |
8771 inputs[0].ki.dwFlags = KEYEVENTF_KEYUP; | 8771 inputs[0].ki.dwFlags = KEYEVENTF_KEYUP; |
8772 if(!isModKey) | 8772 if (!isModKey) |
8773 unwrapMods = TRUE; | 8773 unwrapMods = TRUE; |
8774 } | 8774 } |
8775 | 8775 |
8776 (void)SetForegroundWindow(s_hwnd); | 8776 (void)SetForegroundWindow(s_hwnd); |
8777 SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT)); | 8777 SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT)); |