Changeset 4978 in josm for trunk


Ignore:
Timestamp:
2012-02-18T09:09:31+01:00 (8 years ago)
Author:
stoecker
Message:

add reserved keys for unix

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

Legend:

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

    r4971 r4978  
    209209        Shortcut.registerSystemShortcut("view:zoomin", "reserved", KeyEvent.VK_ADD, KeyEvent.META_DOWN_MASK); // Zoom in
    210210        Shortcut.registerSystemShortcut("view:zoomout", "reserved", KeyEvent.VK_SUBTRACT, KeyEvent.META_DOWN_MASK); // Zoom out
    211 
    212211    }
    213212    @Override
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r4971 r4978  
    4242    public void initSystemShortcuts() {
    4343        // TODO: Insert system shortcuts here. See Windows and especially OSX to see how to.
     44        for(int i = KeyEvent.VK_F1; i <= KeyEvent.VK_F12; ++i)
     45            Shortcut.registerSystemShortcut("screen:toogle"+i, "reserved", i, KeyEvent.CTRL_DOWN_MASK | KeyEvent.ALT_DOWN_MASK);
    4446    }
    4547    /**
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r4897 r4978  
    1515  */
    1616public class PlatformHookWindows extends PlatformHookUnixoid implements PlatformHook {
     17    @Override
    1718    public void openUrl(String url) throws IOException {
    1819        Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
    1920    }
    2021
     22    @Override
    2123    public void initSystemShortcuts() {
    2224        // This list if far from complete!
     
    3032    }
    3133
     34    @Override
    3235    public String getDefaultStyle()
    3336    {
Note: See TracChangeset for help on using the changeset viewer.