I use mostly pure C and ASM, I'm not very good with Cpp so I don't fully understand what happens in
int rv = KeyDownWithModifiers,but to me it looks like when I press just
CTRL i get 308, and A seems to be 1729,
I thought these are keycodes so they don't have to match actual ASCII char values, no?
And in that case shouldn't 65 / 'A' be
CTRL-SHIFT-A ?
I used SVN instead of git because I had the files already, hope that's ok.
Index: ScintillaWX.cpp
===================================================================
--- ScintillaWX.cpp (revision 12064)
+++ ScintillaWX.cpp (working copy)
@@ -1162,8 +1162,12 @@
const int WXK_NONE = 0;
#endif // wxCHECK_VERSION
/* C::B end */
+
+ printf("1. KEY: %d CTRL: %d \n",key,ctrl);
if (ctrl && key >= 1 && key <= 26 && key != WXK_BACK)
key += 'A' - 1;
+
+ printf("2. KEY: %d CTRL: %d \n",key,ctrl);
switch (key) {
case WXK_DOWN: key = SCK_DOWN; break;
@@ -1202,6 +1206,8 @@
case WXK_SHIFT: key = 0; break;
case WXK_MENU: key = SCK_MENU; break;
case WXK_NONE:
+
+ printf("3. KEY: %d CTRL: %d \n",key,ctrl);
#ifdef __WXGTK20__
if (ctrl)
{
@@ -1268,7 +1274,7 @@
),
consumed
);
-
+ printf("4. KEY: %d CTRL: %d RV: %d \n",key,ctrl,rv);
if (key)
return rv;
else