Open GoogleCodeExporter opened 8 years ago
It could check for the OS when adding the accelerators, as described in
http://developer.apple.com/mac/library/documentation/Java/Conceptual/Java14Devel
opment/07-NativePlatformIntegration/NativePlatformIntegration.html
Original comment by cde...@gmail.com
on 1 Jul 2010 at 5:54
The "standard" cut/copy/paste keys are not mapped by jsyntaxpane, so the
built-in actions and their key mappings are used.
All other actions are jsyntaxpane actions which I need to map to keys. The
problem is that it will be a big task to map the keys according to the
platform. Or you'll need to create new config.properties file for the
different platforms and then jsyntaxpane would use the one based on the
platform. This is now beyond what I can do with my limited time on this. If
you are welling to help, let me know and I can give you a basic design that
will fit the rest of the project.
Original comment by ayman.al...@gmail.com
on 7 Jul 2010 at 1:37
Since 0.95_b29 it's now possible to use a special modifier "menu".
The DefaultSyntaxKit maps it to the Systems Menu-Key.
Unfortunatly there's still support for OSX missing. It only checks for the
"alt"-Key.
Propably it should look like this:
static {
// we only need to initialize once.
if (!initialized) {
initKit();
}
int menuMask = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
if(menuMask == KeyEvent.ALT_DOWN_MASK) {
MENU_MASK_STRING = "alt ";
}
if(menuMask == KeyEvent.META_MASK) {
MENU_MASK_STRING = "meta ";
}
}
Original comment by roger.to...@gmail.com
on 17 Feb 2011 at 8:25
Yep, I can confirm if you add to the DefaultSyntaxKit static initializer:
if(menuMask == KeyEvent.META_MASK) {
MENU_MASK_STRING = "meta ";
}
and changing the config.properties to use "menu" instead of "ctrl" for the
shortcuts fixes it for Mac OS X
Original comment by Gabriel....@gmail.com
on 5 Mar 2012 at 7:50
Original issue reported on code.google.com by
annablum...@googlemail.com
on 30 Jun 2010 at 12:26