#3013 Mac OSX: Options to set modifier key mappings

closed-fixed
None
5
2013-10-07
2008-01-15
No

jEdit doesn't recognize the mac option key at all (presumably should map to "meta"). According to conversation on the mailing list, it relates to the following KeyEventTranslator code:

if(OperatingSystem.isMacOS())
{
setModifierMapping(
InputEvent.META_MASK, /* == C+ */
InputEvent.CTRL_MASK, /* == A+ */
/* M+ discarded by key event workaround! */
InputEvent.ALT_MASK, /* == M+ */
InputEvent.SHIFT_MASK /* == S+ */);
}
else
{
setModifierMapping(
InputEvent.CTRL_MASK,
InputEvent.ALT_MASK,
InputEvent.META_MASK,
InputEvent.SHIFT_MASK);
}

Unfortunately, it looks like the following bug explains why this happens:

https://sourceforge.net/support/tracker.php?aid=816909

The easily solution here is to do things the mac-way and only allow "option" commands to be used in conjunction with other modifier keys (command or control), similar to the shift key.

Discussion

  • Alan Ezust

    Alan Ezust - 2009-12-30

    Personally, I thinik the Mac OSX plugin should offer a nice convenient way of selecting the different modifier-mappings that are popular, since there are at least 2 settings that are commonly used, one amongst people who are accustomed to Mac OSX keyboards and one amongst people who are accustomed to Windows keyboards.

    But in the meantime, you can change the mappings via some sample code that is found in the settings/startup.bsh file of your default jEdit install.

     
  • Alan Ezust

    Alan Ezust - 2009-12-30
    • assigned_to: nobody --> scarlac
    • summary: option key does not work in MacOS --> Mac OSX: Options to set modifier key mappings
     
  • Alan Ezust

    Alan Ezust - 2011-11-14
    • assigned_to: scarlac --> evanpw
     
  • Alan Ezust

    Alan Ezust - 2013-10-07
    • assigned_to: evanpw --> ezust
    • status: open --> closed-fixed
     
  • Alan Ezust

    Alan Ezust - 2013-10-07

    This is fixed (for me, anyway) with the current version of the Mac OSX plugin.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks