Changeset 6451 in josm


Ignore:
Timestamp:
2013-12-07T14:18:45+01:00 (10 years ago)
Author:
Don-vip
Message:

fix #6614 - add CUA shortcuts for copy/paste (ctrl-inser and shift-inser)

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CopyAction.java

    r6380 r6451  
    3636                Shortcut.registerShortcut("system:copy", tr("Edit: {0}", tr("Copy")), KeyEvent.VK_C, Shortcut.CTRL), true);
    3737        putValue("help", ht("/Action/Copy"));
     38        // CUA shortcut for copy (http://en.wikipedia.org/wiki/IBM_Common_User_Access#Description)
     39        Main.registerActionShortcut(this,
     40                Shortcut.registerShortcut("system:copy:cua", tr("Edit: {0}", tr("Copy")), KeyEvent.VK_INSERT, Shortcut.CTRL));
    3841    }
    3942
  • trunk/src/org/openstreetmap/josm/actions/PasteAction.java

    r6380 r6451  
    4343                Shortcut.registerShortcut("system:paste", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_V, Shortcut.CTRL), true);
    4444        putValue("help", ht("/Action/Paste"));
     45        // CUA shortcut for paste (http://en.wikipedia.org/wiki/IBM_Common_User_Access#Description)
     46        Main.registerActionShortcut(this,
     47                Shortcut.registerShortcut("system:paste:cua", tr("Edit: {0}", tr("Paste")), KeyEvent.VK_INSERT, Shortcut.SHIFT));
    4548        Main.pasteBuffer.addPasteBufferChangedListener(this);
    4649    }
Note: See TracChangeset for help on using the changeset viewer.