Generate unshifted Unicode key codes in wxEVT_KEY_XXX events in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Sep 2010 10:19:07 +0000 (10:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Sep 2010 10:19:07 +0000 (10:19 +0000)
commit7333c0ef82d54cd2ed21b58fb4fdbcce4f9c9ab6
tree17e22aeee3d04c59d2845fe2bc509e01d0c0ceed
parent5844ad30dd364fd9121b947dfb5164f4ad3a94da
Generate unshifted Unicode key codes in wxEVT_KEY_XXX events in wxGTK.

wxGTK generated wxEVT_KEY_XXX with key codes corresponding to the unshifted
state of the key (except for the letters) but Unicode key codes corresponding
to the current shift state. This was inconsistent with wxMSW and also with the
idea that key events, unlike char ones, don't depend on the modifiers states.

Change wxGTK to behave as wxMSW and use unshifted values for Unicode key codes
as well.

Remove the now unnecessary workaround for different key event Unicode codes
from test.

Also try to explain the difference between normal and Unicode keys and key and
char events even better and mention that the Unicode key codes for the key
events are also untranslated in the documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
interface/wx/event.h
src/gtk/window.cpp
tests/events/keyboard.cpp