kernel32: Enabling/disabling Insert Mode via the user dialog should take effect immediately.
This commit is contained in:
parent
1a0c4efba9
commit
c8069af616
|
@ -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)
|
if (func)
|
||||||
(func)(&ctx);
|
(func)(&ctx);
|
||||||
else if (!(ir.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
|
else if (!(ir.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
|
||||||
|
|
Loading…
Reference in New Issue