Changeset 4500 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-10-07T22:24:12+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r4411 r4500 353 353 354 354 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")); 356 356 add(audioMenu, audioPlayPause); 357 357 add(audioMenu, audioNext); -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r4484 r4500 183 183 private CopyAllKeyValueAction copyAllKeyValueAction = new CopyAllKeyValueAction(); 184 184 private AddAction addAction = new AddAction(); 185 private Shortcut addActionShortcut = Shortcut.registerShortcut("properties:add", tr("Add Properties"), KeyEvent.VK_B,186 Shortcut.GROUP_MNEMONIC);187 185 188 186 @Override … … 192 190 MapView.addEditLayerChangeListener(this); 193 191 updateSelection(); 194 Main.registerActionShortcut(addAction, addActionShortcut);195 192 } 196 193 … … 200 197 SelectionEventManager.getInstance().removeSelectionListener(this); 201 198 MapView.removeEditLayerChangeListener(this); 202 Main.unregisterActionShortcut(addAction, addActionShortcut);203 199 } 204 200 … … 1070 1066 putValue(SHORT_DESCRIPTION, tr("Delete the selected key in all objects")); 1071 1067 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, 1073 1069 Shortcut.GROUP_MNEMONIC); 1074 1070 putValue(MNEMONIC_KEY, (int) KeyEvent.getKeyText(s.getAssignedKey()).charAt(0)); … … 1103 1099 putValue(SHORT_DESCRIPTION, tr("Add a new key/value pair to all objects")); 1104 1100 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)); 1105 1104 } 1106 1105 … … 1115 1114 putValue(SHORT_DESCRIPTION, tr("Edit the value of the selected key for all objects")); 1116 1115 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)); 1117 1119 updateEnabledState(); 1118 1120 }
Note:
See TracChangeset
for help on using the changeset viewer.