X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6582821b61ba8270f712e0f26b2a3d7bf24116f..31a06b07cce898a22d0ca3992501e85da9c22f13:/src/stc/ScintillaWX.cpp diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index 2add87761f..62d53360e5 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -428,6 +428,12 @@ void ScintillaWX::DoAddChar(char ch) { } 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;