Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

Performing Desktop Actions Using the Keyboard

Keyboard Key Combinations

As an alternative to using the mouse, you can press a combination of keyboard keys to perform some desktop actions. MATLAB supports the use of both mnemonics and keyboard shortcuts. The following topics explain the differences between these two methods and how to use them:

What Is a Mnemonic?

A mnemonic is a means of using keystrokes to perform a desktop action, such as clicking a button or opening a menu, and then choosing an option. It is called a mnemonic because it frequently uses the first letter of the menu or menu option name to help you remember the keystrokes required to use it.

Mnemonics appear as underlined letters on menus or buttons. For instance, the F in the MATLAB File menu appears as shown in the following image.

Using Mnemonics

To open a menu or activate a button using mnemonics, press the Alt key and the letter key that corresponds to the underlined letter in the menu name, menu option name, or button name. The action occurs when you press the letter. You also can use mnemonics to perform an action that would require multiple mouse clicks. For example, opening the print dialog box: Alt+F, P. For more information see Examples of Mnemonics and a Keyboard Shortcut.

Customized keyboard shortcuts can override mnemonics. For example, if you specify Alt+F, P as the keyboard shortcut for the Delete action across the desktop, then pressing Alt+F, P no longer opens the Print dialog box. You cannot customize mnemonics.

Platform Differences.  

What Is a Keyboard Shortcut?

A keyboard shortcut is a means of using keyboard key strokes to perform a desktop action, without opening a desktop menu. If a keyboard shortcut is assigned to an action on a menu option, it appears to the right of the option name on the menu. For example, the default keyboard shortcut for opening the Open dialog box is Ctrl+O.

It is possible to have multiple keyboard shortcuts for an action. All defined shortcuts work, but only one appears next to the option name on the desktop menu. When you provide a keyboard shortcut for a menu option that previously had none, the desktop menu automatically updates to display the new keyboard shortcut.

If you define a keyboard shortcut that uses the same keystrokes as a mnemonic but performs a different action, then the mnemonic no longer works.

You can choose from a set of shortcuts that install with MATLAB, create customized sets, or use a set copied from another system. For more information see Performing Desktop Actions Using the Keyboard

Examples of Mnemonics and a Keyboard Shortcut

The image that follows shows the desktop File menu. Notice the mnemonic and keyboard shortcut for closing the Command Window.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS