Hello (Robin),
While trying to work on reassigning some of the built in key shortcuts of the stc I ran into some issues on osx. Other platforms its possible to override the keys with an accelerator table but doesn't work on Mac. I would use the CmdKey assign methods but since Scintilla doesn't have a Cmd key defined it is not possible to use some mappings.
I think that the following patch should fix the accelerator table issue, but I have been having some issues getting the trunk code to run on my machine lately so I have been unable to test it.
Index: ScintillaWX.cpp
···
===================================================================
--- ScintillaWX.cpp (revision 58111)
+++ ScintillaWX.cpp (working copy)
@@ -966,6 +966,11 @@
case 'A': // Select All
ctrl = true;
break;
+ default:
+ // Don't consume it so that the binding can be
+ // overridden in user code.
+ *consumed = false;
+ return 0;
}
}
#endif
Thanks,
Cody