kernel32: Enabling/disabling Insert Mode via the user dialog should take effect immediately.

This commit is contained in:
Hugh McMaster 2015-07-20 21:10:10 +10:00 committed by Alexandre Julliard
parent 1a0c4efba9
commit c8069af616
1 changed files with 4 additions and 0 deletions

View File

@ -987,6 +987,10 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn, BOOL can_pos_cursor)
}
}
GetConsoleMode(hConsoleIn, &mode);
ctx.insert = (mode & (ENABLE_INSERT_MODE|ENABLE_EXTENDED_FLAGS)) ==
(ENABLE_INSERT_MODE|ENABLE_EXTENDED_FLAGS);
if (func)
(func)(&ctx);
else if (!(ir.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))