mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +00:00
- Honor the "Extended" bit in SetKeyState.
svn path=/trunk/; revision=10035
This commit is contained in:
parent
cf7372bf5a
commit
3e78fd6128
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: keyboard.c,v 1.30 2004/07/04 17:08:40 navaraf Exp $
|
/* $Id: keyboard.c,v 1.31 2004/07/08 12:55:01 navaraf Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -89,6 +89,13 @@ static VOID STDCALL SetKeyState(DWORD key, DWORD vk, DWORD ext, BOOL down) {
|
||||||
if (down) QueueKeyStateTable[vk] ^= KS_LOCK_BIT;
|
if (down) QueueKeyStateTable[vk] ^= KS_LOCK_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ext && vk == VK_LSHIFT)
|
||||||
|
vk = VK_RSHIFT;
|
||||||
|
if (ext && vk == VK_LCONTROL)
|
||||||
|
vk = VK_RCONTROL;
|
||||||
|
if (ext && vk == VK_LMENU)
|
||||||
|
vk = VK_RMENU;
|
||||||
|
|
||||||
if (down)
|
if (down)
|
||||||
QueueKeyStateTable[vk] |= KS_DOWN_BIT;
|
QueueKeyStateTable[vk] |= KS_DOWN_BIT;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue