Ignore:
Timestamp:
2018-08-12T02:21:19+02:00 (6 years ago)
Author:
Don-vip
Message:

see #15229 - deprecate Main.platform and related methods - new class PlatformManager

File:
1 edited

Legend:

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

    r14017 r14138  
    371371        if (initdone) return;
    372372        initdone = true;
    373         int commandDownMask = Main.platform.getMenuShortcutKeyMaskEx();
     373        int commandDownMask = PlatformManager.getPlatform().getMenuShortcutKeyMaskEx();
    374374        groups.put(NONE, -1);
    375375        groups.put(MNEMONIC, KeyEvent.ALT_DOWN_MASK);
     
    384384
    385385        // (1) System reserved shortcuts
    386         Main.platform.initSystemShortcuts();
     386        PlatformManager.getPlatform().initSystemShortcuts();
    387387        // (2) User defined shortcuts
    388388        Main.pref.getAllPrefixCollectionKeys("shortcut.entry.").stream()
     
    507507        } else if (existing.isPresent()) {
    508508            final Shortcut conflict = existing.get();
    509             if (Main.isPlatformOsx()) {
     509            if (PlatformManager.isPlatformOsx()) {
    510510                // Try to reassign Meta to Ctrl
    511511                int newmodifier = findNewOsxModifier(requestedGroup);
Note: See TracChangeset for help on using the changeset viewer.