Changeset 1084 in josm for trunk/src/org/openstreetmap/josm/gui/MapView.java
- Timestamp:
- 2008-11-18T19:53:53+01:00 (17 years ago)
- File:
-
- 1 edited
-
trunk/src/org/openstreetmap/josm/gui/MapView.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r1047 r1084 110 110 JosmAction mv; 111 111 mv = new MoveAction(MoveAction.Direction.UP); 112 if (mv.getShort Cut() != null) {113 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShort Cut().getKeyStroke(), "UP");112 if (mv.getShortcut() != null) { 113 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "UP"); 114 114 Main.contentPane.getActionMap().put("UP", mv); 115 115 } 116 116 mv = new MoveAction(MoveAction.Direction.DOWN); 117 if (mv.getShort Cut() != null) {118 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShort Cut().getKeyStroke(), "DOWN");117 if (mv.getShortcut() != null) { 118 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "DOWN"); 119 119 Main.contentPane.getActionMap().put("DOWN", mv); 120 120 } 121 121 mv = new MoveAction(MoveAction.Direction.LEFT); 122 if (mv.getShort Cut() != null) {123 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShort Cut().getKeyStroke(), "LEFT");122 if (mv.getShortcut() != null) { 123 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "LEFT"); 124 124 Main.contentPane.getActionMap().put("LEFT", mv); 125 125 } 126 126 mv = new MoveAction(MoveAction.Direction.RIGHT); 127 if (mv.getShort Cut() != null) {128 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShort Cut().getKeyStroke(), "RIGHT");127 if (mv.getShortcut() != null) { 128 Main.contentPane.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(mv.getShortcut().getKeyStroke(), "RIGHT"); 129 129 Main.contentPane.getActionMap().put("RIGHT", mv); 130 130 }
Note:
See TracChangeset
for help on using the changeset viewer.
