git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11840
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
int ScintillaWX::DoKeyDown(int key, bool shift, bool ctrl, bool alt, bool* consumed) {
+#ifdef __WXGTK__
+ // Ctrl chars (A-Z) end up with the wrong keycode on wxGTK...
+ if (ctrl && key >= 1 && key <= 26)
+ key += 'A' - 1;
+#endif
+
switch (key) {
case WXK_DOWN: key = SCK_DOWN; break;
case WXK_UP: key = SCK_UP; break;
}
int ScintillaWX::DoKeyDown(int key, bool shift, bool ctrl, bool alt, bool* consumed) {
+#ifdef __WXGTK__
+ // Ctrl chars (A-Z) end up with the wrong keycode on wxGTK...
+ if (ctrl && key >= 1 && key <= 26)
+ key += 'A' - 1;
+#endif
+
switch (key) {
case WXK_DOWN: key = SCK_DOWN; break;
case WXK_UP: key = SCK_UP; break;