ui: do not rewrite ShortcutSet for global actions while registering local shortcuts

This commit is contained in:
Aleksey Pivovarov
2017-02-13 14:58:59 +03:00
parent df575fae3f
commit 79a9fd6831
@@ -365,10 +365,12 @@ public final class GuiEditor extends JPanel implements DesignerEditorPanelFacade
myActiveDecorationLayer.installSelectionWatcher();
ActionManager.getInstance().getAction("GuiDesigner.IncreaseIndent").registerCustomShortcutSet(
new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0)), myGlassLayer);
ActionManager.getInstance().getAction("GuiDesigner.DecreaseIndent").registerCustomShortcutSet(
new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, KeyEvent.SHIFT_MASK)), myGlassLayer);
EmptyAction.registerWithShortcutSet("GuiDesigner.IncreaseIndent",
new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0)),
myGlassLayer);
EmptyAction.registerWithShortcutSet("GuiDesigner.DecreaseIndent",
new CustomShortcutSet(KeyStroke.getKeyStroke(KeyEvent.VK_TAB, KeyEvent.SHIFT_MASK)),
myGlassLayer);
UsageTrigger.trigger("swing-designer.open");