- Timestamp:
- 2012-07-30T15:21:06+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r5357 r5382 442 442 } 443 443 444 public static void unregister ActionShortcut(Shortcut shortcut) {444 public static void unregisterShortcut(Shortcut shortcut) { 445 445 contentPanePrivate.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).remove(shortcut.getKeyStroke()); 446 446 } … … 451 451 452 452 public static void unregisterActionShortcut(Action action, Shortcut shortcut) { 453 contentPanePrivate.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).remove(shortcut.getKeyStroke());453 unregisterShortcut(shortcut); 454 454 contentPanePrivate.getActionMap().remove(action); 455 455 } -
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r5378 r5382 224 224 Main.map.mapView.removeTemporaryLayer(this); 225 225 DataSet.removeSelectionListener(this); 226 Main.unregister ActionShortcut(backspaceShortcut);226 Main.unregisterShortcut(backspaceShortcut); 227 227 snapHelper.unsetFixedMode(); 228 228 snapCheckboxMenuItem.getAction().setEnabled(false); … … 1411 1411 1412 1412 if (active) { 1413 double de, dn, l,phi;1413 double phi; 1414 1414 e0 = p0.east(); 1415 1415 n0 = p0.north(); -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r5266 r5382 736 736 Main.registerActionShortcut(mode, mode.getShortcut()); 737 737 } else { 738 Main.unregister ActionShortcut(mode.getShortcut());738 Main.unregisterShortcut(mode.getShortcut()); 739 739 } 740 740 }
Note:
See TracChangeset
for help on using the changeset viewer.