From c8bcc7b2c8ff2f478514ea40a1d9db4cb2030553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 28 Dec 2004 08:49:06 +0000 Subject: [PATCH] Set transition state bit in WM_KEY messages svn path=/trunk/; revision=12373 --- reactos/subsys/win32k/ntuser/input.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/win32k/ntuser/input.c b/reactos/subsys/win32k/ntuser/input.c index 9e4f375b634..c294180244f 100644 --- a/reactos/subsys/win32k/ntuser/input.c +++ b/reactos/subsys/win32k/ntuser/input.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: input.c,v 1.40 2004/12/12 17:56:52 weiden Exp $ +/* $Id: input.c,v 1.41 2004/12/28 08:49:06 gvg Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -324,6 +324,12 @@ KeyboardThreadMain(PVOID StartContext) /* Context mode. 1 if ALT if pressed while the key is pressed */ lParam |= (1 << 29); } + + if (! KeyEvent.bKeyDown) + { + /* Transition state. 1 for KEY_UP etc, 0 for KEY_DOWN */ + lParam |= (1 << 31); + } if (GetHotKey(InputWindowStation, fsModifiers,