[patch] fix delete key on certain european keyboards
Marin Glibic
zhilla at bigfoot.com
Thu May 5 12:16:07 CDT 2005
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!
it IS kinda urgent, since a lot of european keyboards are affected...
like hungarian, croatian, slovenian...
please see if there is anything wrong with it, and apply.
btw: author says "comma" in comment, and should be "separator"... for
decimal numbers, its country dependant, and somewhere it is "." and
somewhere is ","
it was written for "." but works ok for "," too.
-------------- next part --------------
--- 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);
More information about the wine-patches
mailing list