Last change
on this file since 10873 was 10766, checked in by Don-vip, 8 years ago |
fix #13290 - pasting from other layer changes objects position (modified patch by michael2402) - gsoc-core
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6380] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[626] | 2 | // Author: David Earl
|
---|
| 3 | package org.openstreetmap.josm.actions;
|
---|
| 4 |
|
---|
[2818] | 5 | import static org.openstreetmap.josm.gui.help.HelpUtil.ht;
|
---|
[626] | 6 | import static org.openstreetmap.josm.tools.I18n.tr;
|
---|
| 7 |
|
---|
| 8 | import java.awt.event.KeyEvent;
|
---|
| 9 |
|
---|
| 10 | import org.openstreetmap.josm.Main;
|
---|
[1084] | 11 | import org.openstreetmap.josm.tools.Shortcut;
|
---|
[626] | 12 |
|
---|
[5953] | 13 | /**
|
---|
| 14 | * Paste OSM primitives from clipboard to the current edit layer.
|
---|
| 15 | * @since 404
|
---|
| 16 | */
|
---|
[10766] | 17 | public final class PasteAction extends AbstractPasteAction {
|
---|
[626] | 18 |
|
---|
[5953] | 19 | /**
|
---|
| 20 | * Constructs a new {@code PasteAction}.
|
---|
| 21 | */
|
---|
[626] | 22 | public PasteAction() {
|
---|
[10766] | 23 | super(tr("Paste"), "paste", tr("Paste contents of clipboard."),
|
---|
[4982] | 24 | Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut.CTRL), true);
|
---|
[2323] | 25 | putValue("help", ht("/Action/Paste"));
|
---|
[6920] | 26 | // CUA shortcut for paste (https://en.wikipedia.org/wiki/IBM_Common_User_Access#Description)
|
---|
[6451] | 27 | Main.registerActionShortcut(this,
|
---|
| 28 | Shortcut.registerShortcut("system:paste:cua", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_INSERT, Shortcut.SHIFT));
|
---|
[626] | 29 | }
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.