Fix wxKeyEvent::GetKeyCode() descripotion: it doesn't depend on locale.
GetKeyCode() will always return valid key codes for Latin-1 symbols but won't do it for other non-ASCII Unicode characters even if they are representable in the current locale. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1393,11 +1393,11 @@ public:
|
|||||||
codes.
|
codes.
|
||||||
|
|
||||||
Note that this method returns a meaningful value only for special
|
Note that this method returns a meaningful value only for special
|
||||||
non-alphanumeric keys or if the user entered a character that can be
|
non-alphanumeric keys or if the user entered a Latin-1 character (this
|
||||||
represented in current locale's default charset. Otherwise, e.g. if the
|
includes ASCII and the accented letters found in Western European
|
||||||
user enters a Japanese character in a program not using Japanese
|
languages but not letters of other alphabets such as e.g. Cyrillic).
|
||||||
locale, this method returns @c WXK_NONE and GetUnicodeKey() should be
|
Otherwise it simply method returns @c WXK_NONE and GetUnicodeKey()
|
||||||
used to obtain the corresponding Unicode character.
|
should be used to obtain the corresponding Unicode character.
|
||||||
|
|
||||||
Using GetUnicodeKey() is in general the right thing to do if you are
|
Using GetUnicodeKey() is in general the right thing to do if you are
|
||||||
interested in the characters typed by the user, GetKeyCode() should be
|
interested in the characters typed by the user, GetKeyCode() should be
|
||||||
|
Reference in New Issue
Block a user