Author: jimtabor
Date: Sat May 21 00:35:53 2011
New Revision: 51834
URL:
http://svn.reactos.org/svn/reactos?rev=51834&view=rev
Log:
[Win32csr]
- Hack fix to allow Alt-Tab/Esc to be supported. More investigation is required, see bug
6198.
Modified:
trunk/reactos/subsystems/win32/csrss/win32csr/coninput.c
Modified: trunk/reactos/subsystems/win32/csrss/win32csr/coninput.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/csrss/win…
==============================================================================
--- trunk/reactos/subsystems/win32/csrss/win32csr/coninput.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/csrss/win32csr/coninput.c [iso-8859-1] Sat May 21
00:35:53 2011
@@ -323,6 +323,15 @@
}
}
}
+ else
+ {
+ if ((ShiftState & (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED) || KeyState[VK_MENU]
& 0x80) &&
+ (VirtualKeyCode == VK_ESCAPE || VirtualKeyCode == VK_TAB || VirtualKeyCode ==
VK_SPACE))
+ {
+ DefWindowProcW( msg->hwnd, msg->message, msg->wParam,
msg->lParam);
+ return;
+ }
+ }
if (NULL == Console)
{
@@ -356,7 +365,7 @@
er.Event.KeyEvent.bKeyDown &&
((er.Event.KeyEvent.wVirtualKeyCode == VK_PAUSE) ||
(er.Event.KeyEvent.wVirtualKeyCode == 'C')) &&
- (er.Event.KeyEvent.dwControlKeyState & (LEFT_CTRL_PRESSED |
RIGHT_CTRL_PRESSED)))
+ (er.Event.KeyEvent.dwControlKeyState & (LEFT_CTRL_PRESSED |
RIGHT_CTRL_PRESSED) || KeyState[VK_CONTROL] & 0x80))
{
PCSRSS_PROCESS_DATA current;
PLIST_ENTRY current_entry;