mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
ui: do not rewrite ShortcutSet for global actions while registering local shortcuts
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user