forked from aniani/vim
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
|
||||
|
@@ -703,6 +703,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
408,
|
||||
/**/
|
||||
407,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user