"zhilla" zhilla@spymac.com wrote:
ok, this is 3rd time, damn :) this time against wine cvs root, and with, i hope, fixed comments.
- 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);
If you could also use symbolic key(sym) names instead of hardcoded numbers the patch would have better chances to be accepted.