mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0408: GUI test sometimes fails on MS-Windows
Problem: GUI test sometimes fails on MS-Windows. Solution: Make sure Vim is the foreground window. (Ken Takata, closes #11077)
This commit is contained in:
@@ -8649,6 +8649,7 @@ test_gui_w32_sendevent(dict_T *args)
|
||||
inputs[0].ki.wVk = vkCode;
|
||||
if (STRICMP(event, "keyup") == 0)
|
||||
inputs[0].ki.dwFlags = KEYEVENTF_KEYUP;
|
||||
(void)SetForegroundWindow(s_hwnd);
|
||||
SendInput(ARRAYSIZE(inputs), inputs, sizeof(INPUT));
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user