Author: hbelusca Date: Wed Jun 29 23:14:29 2016 New Revision: 71701
URL: http://svn.reactos.org/svn/reactos?rev=71701&view=rev Log: [CONSRV]: "Fix" pasting non-ansi characters in console by removing the code that was too careful (when pasting text we don't generally use the associated virtual key/scan code, but just the unicode character itself. CORE-11465 #resolve #comment Fixed! You can paste cyrillic text in the console without problems, and it is correctly understood.
Modified: trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/text.c
Modified: trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/text.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/winsrv/consrv/... ============================================================================== --- trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/text.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/winsrv/consrv/frontends/gui/text.c [iso-8859-1] Wed Jun 29 23:14:29 2016 @@ -304,8 +304,14 @@ VkKey = VkKeyScanW(CurChar); if (VkKey == 0xFFFF) { - DPRINT1("VkKeyScanW failed - Should simulate the key...\n"); - continue; + DPRINT1("FIXME: TODO: VkKeyScanW failed - Should simulate the key!\n"); + /* + * We don't really need the scan/key code because we actually only + * use the UnicodeChar for output purposes. It may pose few problems + * later on but it's not of big importance. One trick would be to + * convert the character to OEM / multibyte and use MapVirtualKey + * on each byte (simulating an Alt-0xxx OEM keyboard press). + */ }
/* Pressing some control keys */