From ecad27577fd4e949d8e3a271d32f685b42972d57 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 9 Sep 2012 10:46:37 +0000 Subject: [PATCH] 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 --- interface/wx/event.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index a7f20d1b73..73f66d5fe9 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -1393,11 +1393,11 @@ public: codes. Note that this method returns a meaningful value only for special - non-alphanumeric keys or if the user entered a character that can be - represented in current locale's default charset. Otherwise, e.g. if the - user enters a Japanese character in a program not using Japanese - locale, this method returns @c WXK_NONE and GetUnicodeKey() should be - used to obtain the corresponding Unicode character. + non-alphanumeric keys or if the user entered a Latin-1 character (this + includes ASCII and the accented letters found in Western European + languages but not letters of other alphabets such as e.g. Cyrillic). + Otherwise it simply method returns @c WXK_NONE and GetUnicodeKey() + should be used to obtain the corresponding Unicode character. Using GetUnicodeKey() is in general the right thing to do if you are interested in the characters typed by the user, GetKeyCode() should be -- 2.45.2