Changeset 17777 in josm for trunk/src


Ignore:
Timestamp:
2021-04-13T23:00:14+02:00 (4 years ago)
Author:
simon04
Message:

see #16158 - DownloadDialog: fix parsing bounds on Command+V on macOS

File:
1 edited

Legend:

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

    r16928 r17777  
    1414import java.awt.event.ComponentAdapter;
    1515import java.awt.event.ComponentEvent;
    16 import java.awt.event.InputEvent;
    17 import java.awt.event.KeyEvent;
    1816import java.awt.event.WindowAdapter;
    1917import java.awt.event.WindowEvent;
     
    3634import javax.swing.JSplitPane;
    3735import javax.swing.JTabbedPane;
    38 import javax.swing.KeyStroke;
    3936import javax.swing.event.ChangeEvent;
    4037import javax.swing.event.ChangeListener;
     
    7168import org.openstreetmap.josm.tools.Logging;
    7269import org.openstreetmap.josm.tools.OsmUrlToBounds;
     70import org.openstreetmap.josm.tools.Shortcut;
    7371
    7472/**
     
    267265
    268266        getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
    269                 KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_DOWN_MASK), "checkClipboardContents");
     267                Shortcut.getPasteKeyStroke(), "checkClipboardContents");
    270268
    271269        getRootPane().getActionMap().put("checkClipboardContents", new AbstractAction() {
Note: See TracChangeset for help on using the changeset viewer.