]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix Unicode key code for Ctrl-letter in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Dec 2011 14:54:25 +0000 (14:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Dec 2011 14:54:25 +0000 (14:54 +0000)
This was broken by changes in r69892 and just the letter was used as the key
code instead of Ctrl-letter as it used (and should) be.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index 2b2ead040554a16ff8fc2b0cf7cf1b35dbc8d945..1f83b25b852521ac2d2b4a0c97b2f9a0fe8d2249 100644 (file)
@@ -974,7 +974,7 @@ gtk_window_key_press_callback( GtkWidget *WXUNUSED(widget),
                 if ( wxIsUpperChar(key_code) )
                     eventChar.m_keyCode = key_code - 'A' + 1;
 #if wxUSE_UNICODE
-                eventChar.m_uniChar = event.m_keyCode;
+                eventChar.m_uniChar = eventChar.m_keyCode;
 #endif
             }