Changeset 3171 in josm for trunk


Ignore:
Timestamp:
2010-04-06T20:40:25+02:00 (10 years ago)
Author:
bastiK
Message:

fixed #4860 - shortcut for "Download Object" doesn't work always

File:
1 edited

Legend:

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

    r3122 r3171  
    77import java.awt.BorderLayout;
    88import java.awt.EventQueue;
     9import java.awt.event.InputEvent;
     10import java.awt.event.KeyEvent;
    911import java.io.UnsupportedEncodingException;
    1012
     13import javax.swing.JComponent;
    1114import javax.swing.JEditorPane;
    1215import javax.swing.JPanel;
    1316import javax.swing.JScrollPane;
     17import javax.swing.KeyStroke;
    1418import javax.swing.border.EmptyBorder;
    1519import javax.swing.event.HyperlinkEvent;
     
    99103        final LinkGeneral lg = new LinkGeneral("<html>" + styles + "<h1>" + "JOSM - " + tr("Java OpenStreetMap Editor")
    100104                + "</h1><h2 align=\"center\">" + tr("Downloading \"Message of the day\"") + "</h2>");
     105        // clear the build-in command ctrl+shift+O, because it is used as shortcut in JOSM
     106        lg.getInputMap(JComponent.WHEN_FOCUSED).put(KeyStroke.getKeyStroke(KeyEvent.VK_O, InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK), "none");
     107           
    101108        JScrollPane scroller = new JScrollPane(lg);
    102109        scroller.setViewportBorder(new EmptyBorder(10, 100, 10, 100));
Note: See TracChangeset for help on using the changeset viewer.