Changeset 17779 in josm


Ignore:
Timestamp:
2021-04-13T23:31:25+02:00 (4 years ago)
Author:
simon04
Message:

see #16158, fix #12856 - Keyboard shortcuts for zoom out/in not working on macOS

Remove Shortcut.registerSystemShortcut for "view:zoomin" and "view:zoomout"

Ref: https://support.apple.com/en-us/HT210978

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/PlatformHook.java

    r17679 r17779  
    108108      *
    109109      * Please note that you are not allowed to register any
    110       * shortuts from this hook, but only "systemCuts"!
     110      * shortcuts from this hook, but only "systemCuts"!
    111111      *
    112112      * BTW: SystemCuts should be named "system:<whatever>",
    113       * and it'd be best if sou'd recycle the names already used
     113      * and it'd be best if you'd recycle the names already used
    114114      * by the Windows and OSX hooks. Especially the later has
    115115      * really many of them.
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r17739 r17779  
    346346        auto(Shortcut.registerSystemShortcut("system:about", tr("reserved"), 0, -1)); // About
    347347
    348         Shortcut.registerSystemShortcut("view:zoomin", tr("reserved"), KeyEvent.VK_ADD, KeyEvent.META_DOWN_MASK); // Zoom in
    349         Shortcut.registerSystemShortcut("view:zoomout", tr("reserved"), KeyEvent.VK_SUBTRACT, KeyEvent.META_DOWN_MASK); // Zoom out
     348        //Shortcut.registerSystemShortcut("view:zoomin", tr("reserved"), KeyEvent.VK_ADD, KeyEvent.META_DOWN_MASK); // Zoom in
     349        //Shortcut.registerSystemShortcut("view:zoomout", tr("reserved"), KeyEvent.VK_SUBTRACT, KeyEvent.META_DOWN_MASK); // Zoom out
    350350        // CHECKSTYLE.ON: LineLength
    351351    }
Note: See TracChangeset for help on using the changeset viewer.