Stateflow User's Guide Previous page   Next Page

Keyboard Shortcuts for Stateflow Diagrams

The following table is a comprehensive list of keyboard shortcuts for the Stateflow diagram editor:

Key
Action
.. (two periods)
Displays the parent of the currently displayed chart or subchart. There is no limit on the time between the entry of each period.
+
Zooms diagram by an incremental amount. Same as R key.
-
Unzooms diagram by an incremental amount. Same as V key.
0
Fit to view for entire diagram. Same as Space Bar key.
1
Moves the current diagram editor view down and to the left within the full diagram.
2
Moves the current diagram editor view down within the full diagram.
3
Moves the current diagram editor view down and to the right within the full diagram.
4
Moves the current diagram editor view left within the full diagram.
5
Fits the currently selected object to full view. If no object is selected, the chart is fit to full view.
6
Moves the current diagram editor view to the right within the full diagram.
7
Moves the current diagram editor view up and to the left within the full diagram.
8
Moves the current diagram editor view up within the full diagram.
9
Moves the current diagram editor view up and to the right within the full diagram.
Delete
Deletes the selected objects.
Enter
Accesses the contents of the currently highlighted subchart or truth table.
Esc
Does any of the following:
  • If you are editing the label of an object, the Esc key disables label editing but leaves the object selected.
  • If objects are selected, the Esc key deselects all objects in the current view.
  • If the current diagram view is the contents of a subchart and no object is selected, the Esc key changes the view to the parent of the subchart.
  • If the current diagram view is at the chart level and no object is selected, the Esc key displays the Simulink window for that chart's block.
Space Bar
Fit to view for entire chart. Same as 0 key.
F
Fits the currently selected object to full view. If no object is selected, the chart is fit to full view.
J (jump)
Selects the first state, function, truth table, or box parented (contained) by the currently selected object in the same diagram. Selection order of contained objects is top-down, left-right. See also U key.
N (next)
Selects the next state, function, truth table, or box at the same containment level. Selection order of objects is top-down, left-right.
P (previous)
Selects the previous state, function, truth table, or box at the same containment level. Selection order of objects is top-down, left-right.
R
Zooms diagram by an incremental amount. Same as + key.
U (up)
Selects the parent object of the currently highlighted object in the same diagram. See also J key.
V
Unzooms diagram by an incremental amount. Same as - key.


Previous page  Undoing and Redoing Editor Operations Extending Stateflow Chart Diagrams Next page

© 1994-2005 The MathWorks, Inc.