Ignore:
Timestamp:
2012-02-02T19:44:03+01:00 (8 years ago)
Author:
stoecker
Message:

cleanup shortcut handling a lot, fix some more deprecations

File:
1 edited

Legend:

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

    r4842 r4897  
    9494        btnDelete.setPreferredSize(buttonDim);
    9595        Shortcut scDelete = Shortcut.registerShortcut(
    96                 "geoimage:deleteimagefromlayer", tr("Geoimage: {0}", tr("Remove photo from layer")), KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT, Shortcut.SHIFT_DEFAULT);
     96                "geoimage:deleteimagefromlayer", tr("Geoimage: {0}", tr("Remove photo from layer")), KeyEvent.VK_DELETE, Shortcut.GROUPS_ALT1+Shortcut.GROUP_DIRECT);
    9797        Main.registerActionShortcut(delAction, scDelete);
    9898        btnDelete.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(scDelete.getKeyStroke(), DELETE_TEXT);
     
    103103        btnDeleteFromDisk.setPreferredSize(buttonDim);
    104104        Shortcut scDeleteFromDisk = Shortcut.registerShortcut(
    105                 "geoimage:deletefilefromdisk", tr("Geoimage: {0}", tr("Delete File from disk")), KeyEvent.VK_DELETE, Shortcut.GROUP_DIRECT, KeyEvent.SHIFT_DOWN_MASK|KeyEvent.CTRL_DOWN_MASK);
     105                "geoimage:deletefilefromdisk", tr("Geoimage: {0}", tr("Delete File from disk")), KeyEvent.VK_DELETE, Shortcut.GROUPS_ALT1+Shortcut.GROUP_HOTKEY);
    106106        final String ADELFROMDISK = "Delete image file from disk";
    107107        Main.registerActionShortcut(delFromDiskAction, scDeleteFromDisk);
Note: See TracChangeset for help on using the changeset viewer.