|
@@ -10,6 +10,8 @@
|
|
|
*/
|
|
|
package org.yakindu.sct.ui.editor.editor;
|
|
|
|
|
|
+import java.awt.event.KeyEvent;
|
|
|
+
|
|
|
import org.eclipse.core.resources.IMarker;
|
|
|
import org.eclipse.core.resources.IProject;
|
|
|
import org.eclipse.core.resources.IProjectDescription;
|
|
@@ -253,6 +255,14 @@ public class StatechartDiagramEditor extends DiagramPartitioningEditor implement
|
|
|
getKeyHandler().put(KeyStroke.getPressed('+', 0x2b, SWT.MOD1),
|
|
|
getActionRegistry().getAction(GEFActionConstants.ZOOM_IN));
|
|
|
|
|
|
+ // Zoom in - Unix - Numpad plus
|
|
|
+ getKeyHandler().put(KeyStroke.getPressed('+', SWT.KEYPAD_ADD, SWT.MOD1),
|
|
|
+ getActionRegistry().getAction(GEFActionConstants.ZOOM_IN));
|
|
|
+
|
|
|
+ // Zoom in - Unix - Numpad minus
|
|
|
+ getKeyHandler().put(KeyStroke.getPressed('-', SWT.KEYPAD_SUBTRACT, SWT.MOD1),
|
|
|
+ getActionRegistry().getAction(GEFActionConstants.ZOOM_OUT));
|
|
|
+
|
|
|
// Zoom in - Windows - German layout ([CTRL++] propagates char 0x1d)
|
|
|
getKeyHandler().put(KeyStroke.getPressed((char) 0x1d, 0x2b, SWT.MOD1),
|
|
|
getActionRegistry().getAction(GEFActionConstants.ZOOM_IN));
|