abnt2 keyboard patch
Rafael Ávila de Espíndola
rafael.espindola at ic.unicamp.br
Wed Apr 14 05:20:43 CDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have realised that the tables main_key_scan_abnt_qwerty and
main_key_vkey_abnt_qwerty are both wrong. But one error compensates the
other. For example, when I press x the message "Translating key VK_Z..." is
displayed and an 'x' appears on the screen. The other problem with the abnt2
keyboard is that wine assumes that:
/* Only the Keypad keys 0-9 and . send different keysyms
* depending on the NumLock state */
This is not true for the abnt2 keyboard. The comma may also work as a delete.
The attached patch solves both problems.
I have tested the patch with a abnt2 and a us-int keyboard. Both work
correctly.
Dmitry: Do you think that the "magic numbers" are reasonably explained? What I
have done is basically to treat the comma similarilly to the decimal period.
The numbers are different from the first patch because in the first one I
haven't fixed the main_key_scan_abnt_qwerty and main_key_vkey_abnt_qwerty
tables.
One last comment: as far as I know (and I have seen a lot of them), all abnt2
keyboards have an "alt gr" key.
How may I contact Mauro Carvalho Chehab and Raul Gomes Fernandes to talk about
this?
Thanks
Rafael Ávila de Espíndola
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAfRCCLlrfGJ8JUHwRAiGPAKC5Dyk63LcFKYLlQvb+a6W0ZD6ciQCgphzi
9SnBTtF8mBQlWG1IZU0mn3A=
=OWHk
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: abnt2.diff.bz2
Type: application/x-bzip2
Size: 533 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040414/6d45733a/abnt2.diff.bin
More information about the wine-patches
mailing list