Model Center—Keyboard Shortcuts
| Common Keyboard Shortcuts | Messages View |
| Class Browser Window | Component Browser |
| Class Window | Documentation Center |
| View Window | Flat Modelica Window |
The keyboard key combinations and keyboard shortcuts available in Model Center are listed in this section. The list shows the keyboard key combination for Windows and Linux. Unless otherwise stated, the key combination for macOS is the same, but with Ctrl replaced with the Command key, also known as the Apple key, on macOS keyboards. On all operating systems, the Enter key can be used as a replacement for Return.
Common Keyboard Shortcuts
- Ctrl+S Save the class in the active class window, or, if Documentation Center is open and is active, the class opens in Documentation Center.
- Ctrl+F Activate the find text box in the Class Browser window, or if the Modelica Text View is active, open the find panel.
Class Browser Window
- Left Arrow If selected class is a package, collapse the branch of the tree and hide the contents of the package. If the branch is already collapsed, select the parent package, if any.
- Right Arrow If selected class is a package, expand the branch of the tree and show the contents of the package. If the branch is already expanded, select the first class in the package.
Class Window
All Views
Icon and Diagram Views
- Shift If held down when creating a line or connection line, the line is created as a Bézier spline. Otherwise, allows objects to be added to or removed from the current set of selected objects by clicking them.
- Ctrl If held down when dropping a component from the Class Browser onto the Icon or Diagram view, activates the selected On Drop Action. The default On Drop Action is to show a popup menu with different choices.
- Alt Whenever held down, free movement of objects and selection handles is enabled. Snapping is temporarily disabled, and no orthogonal angles of connection lines are enforced.
- Space If items are being moved using the mouse, pressing the space bar will rotate them 90º to the right (clockwise); otherwise, it activates the Pointer Tool.
- Return If a single component is selected, open the component in component mode. If a single graphic item is selected, edit the properties of the object.
- - If a single line, polygon, or connection line is selected, remove the point nearest the mouse cursor.
- F1 If a single component is selected, show the documentation of its class. If no components are selected, show the documentation of the visualized class.
- Left Arrow Move selected objects left. If no selected objects exist, move left in the graphical view.
- Right Arrow Move selected objects right. If no selected objects exist, move right in the graphical view.
- Down Arrow Move selected objects down. If no selected objects exist, move down in the graphical view.
Component View Mode
Modelica Text View
- F1 Contextual help. Shows documentation for the selected text, or the word under the cursor if no selection exists. If no specific documentation page can be derived from the selected text or from the word under the cursor, a general search in Documentation Center is performed. In case there is no selection and no word under the cursor, the documentation for the class associated with the currently open class window is shown.
View Window
Parameters View
Most of the shortcuts and keys described in this section are only valid when one of the text fields of the Parameters view is activated, i.e. when the text cursor is visible in one of the text fields.
Variables View
Most of the shortcuts and keys described in this section are only valid when one of the text fields of the Variables view is activated, i.e. when the text cursor is visible in one of the text fields.
Constants View
Most of the shortcuts and keys described in this section are only valid when one of the text fields of the Constants view is activated, i.e. when the text cursor is visible in one of the text fields.
Messages View
Kernel Command View: Output View
Kernel Command View: Input Field
Component Browser
- F1 If a single component is selected, show the documentation of its class. If a single class is selected, show the documentation of the class.
- Up Arrow Select the component above the currently selected component. If a graphical view is active in the class window, the component is also selected in that view.
- Down Arrow Select the component below the currently selected component. If a graphical view is active in the class window, the component is also selected in that view.