mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
added keyboard shortcuts to some menu options
This commit is contained in:
+10
-2
@@ -145,6 +145,8 @@ public class ActionFactory {
|
|||||||
super();
|
super();
|
||||||
this.plugInPort = plugInPort;
|
this.plugInPort = plugInPort;
|
||||||
putValue(AbstractAction.NAME, "New");
|
putValue(AbstractAction.NAME, "New");
|
||||||
|
putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N,
|
||||||
|
ActionEvent.CTRL_MASK));
|
||||||
putValue(AbstractAction.SMALL_ICON, IconLoader.DocumentPlainYellow.getIcon());
|
putValue(AbstractAction.SMALL_ICON, IconLoader.DocumentPlainYellow.getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -184,6 +186,8 @@ public class ActionFactory {
|
|||||||
this.plugInPort = plugInPort;
|
this.plugInPort = plugInPort;
|
||||||
this.swingUI = swingUI;
|
this.swingUI = swingUI;
|
||||||
putValue(AbstractAction.NAME, "Open");
|
putValue(AbstractAction.NAME, "Open");
|
||||||
|
putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_O,
|
||||||
|
ActionEvent.CTRL_MASK));
|
||||||
putValue(AbstractAction.SMALL_ICON, IconLoader.FolderOut.getIcon());
|
putValue(AbstractAction.SMALL_ICON, IconLoader.FolderOut.getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,6 +236,8 @@ public class ActionFactory {
|
|||||||
this.plugInPort = plugInPort;
|
this.plugInPort = plugInPort;
|
||||||
this.swingUI = swingUI;
|
this.swingUI = swingUI;
|
||||||
putValue(AbstractAction.NAME, "Save");
|
putValue(AbstractAction.NAME, "Save");
|
||||||
|
putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S,
|
||||||
|
ActionEvent.CTRL_MASK));
|
||||||
putValue(AbstractAction.SMALL_ICON, IconLoader.DiskBlue.getIcon());
|
putValue(AbstractAction.SMALL_ICON, IconLoader.DiskBlue.getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -299,6 +305,8 @@ public class ActionFactory {
|
|||||||
this.plugInPort = plugInPort;
|
this.plugInPort = plugInPort;
|
||||||
this.swingUI = swingUI;
|
this.swingUI = swingUI;
|
||||||
putValue(AbstractAction.NAME, "Save As");
|
putValue(AbstractAction.NAME, "Save As");
|
||||||
|
putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_S,
|
||||||
|
ActionEvent.CTRL_MASK | ActionEvent.SHIFT_MASK));
|
||||||
putValue(AbstractAction.SMALL_ICON, IconLoader.DiskBlue.getIcon());
|
putValue(AbstractAction.SMALL_ICON, IconLoader.DiskBlue.getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -457,6 +465,8 @@ public class ActionFactory {
|
|||||||
super();
|
super();
|
||||||
this.drawingProvider = drawingProvider;
|
this.drawingProvider = drawingProvider;
|
||||||
putValue(AbstractAction.NAME, "Print...");
|
putValue(AbstractAction.NAME, "Print...");
|
||||||
|
putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_P,
|
||||||
|
ActionEvent.CTRL_MASK));
|
||||||
putValue(AbstractAction.SMALL_ICON, IconLoader.Print.getIcon());
|
putValue(AbstractAction.SMALL_ICON, IconLoader.Print.getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -657,8 +667,6 @@ public class ActionFactory {
|
|||||||
super();
|
super();
|
||||||
this.plugInPort = plugInPort;
|
this.plugInPort = plugInPort;
|
||||||
putValue(AbstractAction.NAME, "Edit Project");
|
putValue(AbstractAction.NAME, "Edit Project");
|
||||||
putValue(AbstractAction.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E,
|
|
||||||
ActionEvent.CTRL_MASK));
|
|
||||||
putValue(AbstractAction.SMALL_ICON, IconLoader.DocumentEdit.getIcon());
|
putValue(AbstractAction.SMALL_ICON, IconLoader.DocumentEdit.getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user