Ignore:
Timestamp:
2018-05-25T21:05:36+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #5603, see #5256, see #15240 - add first/last buttons for geoimage dialog. Fixed shortcuts. Switch to SVG icons taken from https://commons.wikimedia.org/wiki/GNOME_Desktop_icons#Navigation

File:
1 edited

Legend:

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

    r13795 r13832  
    2727import javax.swing.ButtonGroup;
    2828import javax.swing.ImageIcon;
     29import javax.swing.InputMap;
    2930import javax.swing.JButton;
    3031import javax.swing.JCheckBoxMenuItem;
     
    222223        splitPane.setUI(new NoBorderSplitPaneUI());
    223224
    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());
    227231
    228232        add(splitPane, BorderLayout.CENTER);
Note: See TracChangeset for help on using the changeset viewer.