Set transition state bit in WM_KEY messages

svn path=/trunk/; revision=12373
This commit is contained in:
Gé van Geldorp 2004-12-28 08:49:06 +00:00
parent 190c2b5fc1
commit c8bcc7b2c8

View file

@ -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: 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 * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -325,6 +325,12 @@ KeyboardThreadMain(PVOID StartContext)
lParam |= (1 << 29); lParam |= (1 << 29);
} }
if (! KeyEvent.bKeyDown)
{
/* Transition state. 1 for KEY_UP etc, 0 for KEY_DOWN */
lParam |= (1 << 31);
}
if (GetHotKey(InputWindowStation, if (GetHotKey(InputWindowStation,
fsModifiers, fsModifiers,
KeyEvent.wVirtualKeyCode, KeyEvent.wVirtualKeyCode,