On 5/5/05, zhilla zhilla@spymac.com wrote:
sorry if double, resend... well, this is just this: http://bugs.winehq.org/show_bug.cgi?id=2400 and should apply to today's cvs. i AM NOT the author!
I have no idea how correct this patch is but I see a few things wrong with the patch style. It's missing a Changelog entry. It uses c++/c99 comment style (//). And the patch is made from the dlls/x11drv/ dir and not the cvs root.
Paul
--- keyboard.c.orig 2005-05-05 18:22:56.000000000 +0200 +++ keyboard.c 2005-05-05 17:41:03.000000000 +0200 @@ -1067,11 +1067,14 @@ else XLookupString(e, NULL, 0, &keysym, NULL);
- if ((keysym >= 0xFFAE) && (keysym <= 0xFFB9) && (keysym != 0xFFAF)
&& (e->state & NumLockMask))
/* Only the Keypad keys 0-9 and . send different keysyms
* depending on the NumLock state */
return nonchar_key_vkey[keysym & 0xFF];
if (e->state & NumLockMask) // NumLock is active
{if (keysym == 0xFFAC) // Numeric Del pressed
return keyc2vkey[0x3B]; // comma
if ((keysym >= 0xFFAE) && (keysym <= 0xFFB9) && (keysym != 0xFFAF))
/* Only the Keypad keys 0-9 and . send different keysyms
* depending on the NumLock state */
return nonchar_key_vkey[keysym & 0xFF];
}
TRACE_(key)("e->keycode = %x\n", e->keycode);