Changeset 7789 in josm for trunk/src


Ignore:
Timestamp:
2014-12-11T14:50:09+01:00 (5 years ago)
Author:
bastiK
Message:

see #10812 - add shortcut back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageViewerDialog.java

    r7788 r7789  
    116116        JButton btnCopyPath = new JButton(copyPathAction);
    117117        btnCopyPath.setPreferredSize(buttonDim);
     118        Shortcut scCopyPath = Shortcut.registerShortcut(
     119                "geoimage:copypath", tr("Geoimage: {0}", tr("Copy image path")), KeyEvent.VK_C, Shortcut.ALT_CTRL_SHIFT);
    118120        final String ACOPYPATH = "Copy image path";
     121        Main.registerActionShortcut(copyPathAction, scCopyPath);
     122        btnCopyPath.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(scCopyPath.getKeyStroke(), ACOPYPATH);
    119123        btnCopyPath.getActionMap().put(ACOPYPATH, copyPathAction);
    120124
Note: See TracChangeset for help on using the changeset viewer.