Jacek Caban : conhost: Allow events with left alt pressed in edit_line_insert.

Alexandre Julliard julliard at winehq.org
Wed Dec 2 15:21:07 CST 2020


Module: wine
Branch: master
Commit: 90cdea1b65f9f3787b71395a41d30556c688a24f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=90cdea1b65f9f3787b71395a41d30556c688a24f

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Dec  2 18:20:41 2020 +0100

conhost: Allow events with left alt pressed in edit_line_insert.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50197
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/conhost/conhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/programs/conhost/conhost.c b/programs/conhost/conhost.c
index f864bbb5a1c..dbf0e1459d1 100644
--- a/programs/conhost/conhost.c
+++ b/programs/conhost/conhost.c
@@ -1277,7 +1277,7 @@ static NTSTATUS process_console_input( struct console *console )
             ^ ctx->insert_key;
 
         if (func) func( console );
-        else if (ir.Event.KeyEvent.uChar.UnicodeChar && !(ir.Event.KeyEvent.dwControlKeyState & LEFT_ALT_PRESSED))
+        else if (ir.Event.KeyEvent.uChar.UnicodeChar)
             edit_line_insert( console, &ir.Event.KeyEvent.uChar.UnicodeChar, 1 );
 
         if (!(console->mode & ENABLE_LINE_INPUT) && ctx->status == STATUS_PENDING)




More information about the wine-cvs mailing list