WOLFRAM

Model CenterKeyboard Shortcuts

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+N Create a new Modelica class.
  • Ctrl+O Open a Modelica file (.mo, .moe, .sma, .sbml, .xml). XML files must be valid SBML files.
  • 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+Q Quit Model 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.
  • Ctrl+G Go to line number.
  • Alt+Return Show properties for the selected item.
  • Ctrl+Shift+R Simulate the class in the active class window.
  • Ctrl+Alt+B Show the Class Browser window.
  • Ctrl+Alt+C Show the Component Browser.
  • Ctrl+Alt+O Show the Other Windows window.
  • Ctrl+Alt+P Show the Parameters view.
  • Ctrl+Alt+V Show the Variables view.
  • Ctrl+Alt+S Show the Constants view.
  • Ctrl+Alt+M Show the Messages view.
  • Ctrl+Alt+K Show the Kernel Command view.
  • Ctrl+Tab Change the active class window.
  • Ctrl+Shift+T Reopen the most recently closed class window.
  • Ctrl+0 Toggle between Model Center and Simulation Center.

Class Browser Window

  • Ctrl+C Copy selected class to the clipboard.
  • Ctrl+V Paste class on the clipboard, if any, into the selected class.
  • Ctrl+D Duplicate selected class.
  • Delete Delete selected class, or if the class is a top-level class, unload the class.
  • Return Open selected class in a class window.
  • F2 Rename selected class.
  • F1 Show documentation of the selected class.
  • 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.
  • Up Arrow Select class above the currently selected class.
  • Down Arrow Select class below the currently selected class.

Class Window

All Views

  • Ctrl+P Print contents of the view.
  • Ctrl+Z Undo last operation.
  • Ctrl+Y Redo last operation.
  • Ctrl+Shift+Z (same on macOS) Redo last text edit.
  • Ctrl+1 Switch to the Icon View.
  • Ctrl+2 Switch to the Diagram View.
  • Ctrl+3 Switch to the Modelica Text View.
  • Ctrl+Shift+V Validate visualized class.
  • Ctrl+W (also Ctrl+F4 on Windows) Close active class window.

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.
  • Delete Delete selected objects.
  • Ctrl+C Copy selected objects to the clipboard.
  • Ctrl+X Cut selected objects to the clipboard.
  • Ctrl+V Paste clipboard contents into the view.
  • Ctrl+D Duplicate selected objects.
  • Ctrl+A Select all objects.
  • Ctrl+/ Enable/disable selected components.
  • Ctrl+Shift+W Zoom the view to fit the size of the window.
  • # Toggles the visibility of the grid.
  • 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.
  • C Activates the Connection Line Tool.
  • L Activates the Line Tool.
  • R Activates the Rectangle Tool.
  • E Activates the Ellipse Tool.
  • P Activates the Polygon Tool.
  • T Activates the Text Tool.
  • B Bitmap Tool.
  • Ctrl+R Rotate selected objects 90º to the right (clockwise).
  • Ctrl+Shift+H Flip selected objects horizontally.
  • Ctrl+Shift+J Flip selected objects vertically.
  • Esc If there are selected items, deselects the items; otherwise, 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.
  • 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.
  • F2 If a single component is selected, rename the component.
  • 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.
  • Up Arrow Move selected objects up. If no selected objects exist, move up in the graphical view.
  • Down Arrow Move selected objects down. If no selected objects exist, move down in the graphical view.
  • Page Up Move up in the graphical view.
  • Page Down Move down in the graphical view.
  • Shift+Page Up Move left in the graphical view.
  • Shift+Page Down Move right in the graphical view.
Component View Mode
  • Alt+Left Arrow (Cmd+[ on macOS) Navigate backward.
  • Backspace Navigate backward.
  • Alt+Right Arrow (Cmd+] on macOS) Navigate forward.
  • Shift+Backspace Navigate forward.
  • Alt+Up Arrow Navigate up in the hierarchy.
  • Esc Exit component mode.

Modelica Text View

  • Ctrl+Z Undo last text edit.
  • Ctrl+Y or Ctrl+Shift+Z Redo last text edit.
  • Ctrl+X Cut selected text to the clipboard.
  • Ctrl+C Copy the selected text to the clipboard.
  • Ctrl+V Paste clipboard contents into the Modelica Text View.
  • Delete Delete selected text, or if no text is selected, delete the character to the right.
  • 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.
  • Ctrl+F Open the find bar.
  • Esc Close find bar if open.
  • F3 (Cmd+G on macOS, Ctrl+G on Linux) Find next (when using Find).
  • Shift+F3 (Cmd+Shift+G on macOS, Ctrl+Shift+G on Linux) Find previous (when using Find).
  • Ctrl+G (Cmd+L on macOS, Ctrl+L on Linux) Go to line.
  • Ctrl+A Select all text.
  • Ctrl+/ Comment/uncomment the selected code, or if no selection, the current line.
  • Ctrl+Shift+A Collapse/expand annotations.
  • Ctrl+Shift+W Enable/disable word wrap.
  • Shift+Return Apply any changes made in the Modelica Text View.

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.

  • Ctrl+Z Undo last text edit.
  • Ctrl+Y or Ctrl+Shift+Z Redo last text edit.
  • Ctrl+X Cut selected text to the clipboard.
  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+V Paste clipboard contents into the text field.
  • Delete Delete selected text, or if no text is selected, delete the character to the right.
  • Ctrl+A Select all text.
  • Return Confirm the parameter value in the active text field and move to the next field, if any.
  • Tab Confirm the parameter value in the active text field and move to the next field, if any.

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.

  • Ctrl+Z Undo last text edit.
  • Ctrl+Y (or Ctrl+Shift+Z) Redo last text edit.
  • Ctrl+X Cut selected text to the clipboard.
  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+V Paste clipboard contents into the text field.
  • Delete Delete selected text, or if no text is selected, delete the character to the right.
  • Ctrl+A Select all text.
  • Return Confirm the variable value in the active text field and move to the next field, if any.
  • Tab Confirm the variable value in the active text field and move to the next field, if any.

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.

  • Ctrl+Z Undo last text edit.
  • Ctrl+Y or Ctrl+Shift+Z Redo last text edit.
  • Ctrl+X Cut selected text to the clipboard.
  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+V Paste clipboard contents into the text field.
  • Delete Delete selected text, or if no text is selected, delete the character to the right.
  • Ctrl+A Select all text.
  • Return Confirm the constant value in the active text field and move to the next field, if any.
  • Tab Confirm the constant value in the active text field and move to the next field, if any.

Messages View

  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+F Open the find bar.
  • F3 (Cmd+G on macOS, Ctrl+G on Linux) Find next (when using Find).
  • Shift+F3 (Cmd+Shift+G on macOS, Ctrl+Shift+G on Linux) Find previous (when using Find).
  • Esc Close find bar if open.

Kernel Command View: Output View

  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+A Select all text.

Kernel Command View: Input Field

  • Ctrl+Z Undo last text edit.
  • Ctrl+Y or Ctrl+Shift+Z Redo last text edit.
  • Ctrl+X Cut selected text to the clipboard.
  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+V Paste clipboard contents into the text field.
  • Delete Delete selected text, or if no text is selected, delete the character to the right.
  • Ctrl+A Select all text.
  • Return Evaluate given command.
  • Up Arrow Step backward in the history of commands.
  • Down Arrow Step forward in the history of commands.

Component Browser

  • Delete Delete selected components.
  • Ctrl+A Select all components.
  • Return If a single component is selected, open the component in component mode.
  • F2 If a single component is selected, rename the component.
  • 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.

Documentation Center

  • Ctrl+Z Undo last text edit (edit mode only).
  • Ctrl+Y or Ctrl+Shift+Z Redo last text edit (edit mode only).
  • Ctrl+L Activate and highlight the address bar.
  • Ctrl+F Open the find bar (view mode only).
  • F3 (Cmd+G on macOS, Ctrl+G on Linux) Find next (when using Find).
  • Shift+F3 (Cmd+Shift+G on macOS, Ctrl+Shift+G on Linux) Find previous (when using Find).
  • Ctrl+S Save the documentation of the currently viewed class as HTML.
  • Ctrl+P Print current page.
  • Ctrl+X Cut selected text to the clipboard (edit mode only).
  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+V Paste clipboard contents into editor (edit mode only).
  • Ctrl+E Switch between edit and view mode.
  • Ctrl+Plus Zoom in (view mode only).
  • Ctrl+Minus Zoom out (view mode only).
  • Backspace Navigate backward in the history (view mode only).
  • Shift+Backspace Navigate forward in the history (view mode only).
  • Alt+Left Arrow (Cmd+[ on macOS) Navigate backward in the history (view mode only).
  • Alt+Right Arrow (Cmd+] on macOS) Navigate forward in the history (view mode only).
  • Ctrl+W or Ctrl+Q (also Alt+F4 on Windows) Close window.

Flat Modelica Window

  • Ctrl+C Copy selected text to the clipboard.
  • Ctrl+F Open the find bar.
  • Esc Close find bar if open.
  • F3 (Cmd+G on macOS, Ctrl+G on Linux) Find next (when using Find).
  • Shift+F3 (Cmd+Shift+G on macOS, Ctrl+Shift+G on Linux) Find previous (when using Find).
  • Ctrl+A Select all text.
  • Ctrl+Shift+A Collapse/expand annotations.
  • Ctrl+Shift+W Enable/disable word wrap.
  • F5 Refresh view (regenerates the flat Modelica class definition for the class).
  • Ctrl+W or Ctrl+Q (also Alt+F4 on Windows) Close window.