X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fsubsys%2Fsystem%2Fcmd%2Fcmdinput.c;h=ab7e64943a71947504e0e4d9ada99f656c87244b;hp=76c28d80e2154ab24f7ef403b72a15dc3cd4ec6c;hb=593d6d0f28c2aa09f47fe7608beafea1b25da7cc;hpb=a0af76e470379d1eeea524629a963e1117590096 diff --git a/reactos/subsys/system/cmd/cmdinput.c b/reactos/subsys/system/cmd/cmdinput.c index 76c28d80e21..ab7e64943a7 100644 --- a/reactos/subsys/system/cmd/cmdinput.c +++ b/reactos/subsys/system/cmd/cmdinput.c @@ -409,8 +409,9 @@ VOID ReadCommand (LPTSTR str, INT maxlen) #endif break; - + case _T('M'): + case _T('C'): /* ^M does the same as return */ if(!(ir.Event.KeyEvent.dwControlKeyState & (RIGHT_CTRL_PRESSED|LEFT_CTRL_PRESSED))) @@ -513,10 +514,12 @@ VOID ReadCommand (LPTSTR str, INT maxlen) } #ifdef _UNICODE ch = ir.Event.KeyEvent.uChar.UnicodeChar; - if ((ch >= 32 && ch <= 255) && (charcount != (maxlen - 2))) + if ((ch >= 32 && ch <= 255) && (charcount != (maxlen - 2)) && + !(ir.Event.KeyEvent.dwControlKeyState & (RIGHT_CTRL_PRESSED|LEFT_CTRL_PRESSED))) #else ch = ir.Event.KeyEvent.uChar.AsciiChar; - if ((UCHAR)ch >= 32 && (charcount != (maxlen - 2))) + if ((UCHAR)ch >= 32 && (charcount != (maxlen - 2)) && + !(ir.Event.KeyEvent.dwControlKeyState & (RIGHT_CTRL_PRESSED|LEFT_CTRL_PRESSED))) #endif /* _UNICODE */ { /* insert character into string... */