Ignore:
Timestamp:
2008-10-05T17:06:27+02:00 (16 years ago)
Author:
stoecker
Message:

close bug #1622. Keyboard shortcuts and specific OS handling

File:
1 edited

Legend:

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

    r627 r1023  
    99
    1010import org.openstreetmap.josm.Main;
    11 
     11import org.openstreetmap.josm.tools.ShortCut;
    1212
    1313/**
    1414 * Undoes the last command.
    15  * 
     15 *
    1616 * @author imi
    1717 */
     
    2222         */
    2323        public UndoAction() {
    24                 super(tr("Undo"), "undo", tr("Undo the last action."), KeyEvent.VK_Z, InputEvent.CTRL_DOWN_MASK, true);
     24                super(tr("Undo"), "undo", tr("Undo the last action."),
     25                ShortCut.registerShortCut("system:undo", tr("Edit: Undo"), KeyEvent.VK_Z, ShortCut.GROUP_MENU), true);
    2526                setEnabled(false);
    2627        }
Note: See TracChangeset for help on using the changeset viewer.