Mnemonics and Shortcuts
Mnemonics are used in conjunction with menus to provide better keyboard support with your application. If a user tends to use the keyboard as opposed to the mouse for navigating the user interface, mnemonics allow the user to quickly select a menu item on a menu using the mnemonic key associated with the desired menu item.
The first mnemonic key is pressed together with the Alt key to show a sub menu from the main menu. Then, the subsequent mnemonic keys can be pressed with or without using the Alt key to select a menu item on the sub menu.
You define what the single key is for a menu item by defining the mnemonic character for the menu item. This is done by using the ampersand (&) character within the text of the menu ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access