Changeset 13832 in josm for trunk/src/org/openstreetmap/josm/gui/MapFrame.java
- Timestamp:
- 2018-05-25T21:05:36+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r13795 r13832 27 27 import javax.swing.ButtonGroup; 28 28 import javax.swing.ImageIcon; 29 import javax.swing.InputMap; 29 30 import javax.swing.JButton; 30 31 import javax.swing.JCheckBoxMenuItem; … … 222 223 splitPane.setUI(new NoBorderSplitPaneUI()); 223 224 224 // JSplitPane supports F6 and F8 shortcuts by default, but we need them for Audio actions 225 splitPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0), new Object()); 226 splitPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0), new Object()); 225 // JSplitPane supports F6, F8, Home and End shortcuts by default, but we need them for Audio and Image Mapping actions 226 InputMap splitInputMap = splitPane.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); 227 splitInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0), new Object()); 228 splitInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_F8, 0), new Object()); 229 splitInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_HOME, 0), new Object()); 230 splitInputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_END, 0), new Object()); 227 231 228 232 add(splitPane, BorderLayout.CENTER);
Note:
See TracChangeset
for help on using the changeset viewer.