Changeset 4500 in josm


Ignore:
Timestamp:
2011-10-07T22:24:12+02:00 (13 years ago)
Author:
simon04
Message:

fix #5781 - change mnemonics of {add,edit,delete} property to alt+{a,s,d}, of audio menu to alt+u

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

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainMenu.java

    r4411 r4500  
    353353
    354354        if (!Main.pref.getBoolean("audio.menuinvisible", false)) {
    355             audioMenu = addMenu(marktr("Audio"), KeyEvent.VK_A, defaultMenuPos, ht("/Menu/Audio"));
     355            audioMenu = addMenu(marktr("Audio"), KeyEvent.VK_U, defaultMenuPos, ht("/Menu/Audio"));
    356356            add(audioMenu, audioPlayPause);
    357357            add(audioMenu, audioNext);
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r4484 r4500  
    183183    private CopyAllKeyValueAction copyAllKeyValueAction = new CopyAllKeyValueAction();
    184184    private AddAction addAction = new AddAction();
    185     private Shortcut addActionShortcut = Shortcut.registerShortcut("properties:add", tr("Add Properties"), KeyEvent.VK_B,
    186             Shortcut.GROUP_MNEMONIC);
    187185
    188186    @Override
     
    192190        MapView.addEditLayerChangeListener(this);
    193191        updateSelection();
    194         Main.registerActionShortcut(addAction, addActionShortcut);
    195192    }
    196193
     
    200197        SelectionEventManager.getInstance().removeSelectionListener(this);
    201198        MapView.removeEditLayerChangeListener(this);
    202         Main.unregisterActionShortcut(addAction, addActionShortcut);
    203199    }
    204200
     
    10701066            putValue(SHORT_DESCRIPTION, tr("Delete the selected key in all objects"));
    10711067            putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete"));
    1072             Shortcut s = Shortcut.registerShortcut("properties:delete", tr("Delete Properties"), KeyEvent.VK_Q,
     1068            Shortcut s = Shortcut.registerShortcut("properties:delete", tr("Delete Properties"), KeyEvent.VK_D,
    10731069                    Shortcut.GROUP_MNEMONIC);
    10741070            putValue(MNEMONIC_KEY, (int) KeyEvent.getKeyText(s.getAssignedKey()).charAt(0));
     
    11031099            putValue(SHORT_DESCRIPTION, tr("Add a new key/value pair to all objects"));
    11041100            putValue(SMALL_ICON, ImageProvider.get("dialogs", "add"));
     1101            Shortcut s = Shortcut.registerShortcut("properties:add", tr("Add Property"), KeyEvent.VK_A,
     1102                    Shortcut.GROUP_MNEMONIC);
     1103            putValue(MNEMONIC_KEY, (int) KeyEvent.getKeyText(s.getAssignedKey()).charAt(0));
    11051104        }
    11061105
     
    11151114            putValue(SHORT_DESCRIPTION, tr("Edit the value of the selected key for all objects"));
    11161115            putValue(SMALL_ICON, ImageProvider.get("dialogs", "edit"));
     1116            Shortcut s = Shortcut.registerShortcut("properties:edit", tr("Edit Properties"), KeyEvent.VK_S,
     1117                    Shortcut.GROUP_MNEMONIC);
     1118            putValue(MNEMONIC_KEY, (int) KeyEvent.getKeyText(s.getAssignedKey()).charAt(0));
    11171119            updateEnabledState();
    11181120        }
Note: See TracChangeset for help on using the changeset viewer.