[resend] [patch] fix delete key on certain european keyboards
Dmitry Timoshkov
dmitry at codeweavers.com
Sat May 7 02:41:00 CDT 2005
"zhilla" <zhilla at 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.
--
Dmitry.
More information about the wine-devel
mailing list