Keyboard shortcuts are keystroke combinations that activate a menu item from the keyboard even if the menu for that command is not currently displayed. Keyboard shortcuts usually consist of a modifier key and a character key, like Ctrl+Z, or a few special keys, such as F1 and Delete. Unlike mnemonics, keyboard shortcuts do not display menus. They perform the indicated actions directly.
Table E–1 provides a list of the standard keyboard shortcuts that the Java Console supports.
Table E–1 Common Java Console Navigation and Activation Keys
Keyboard Operation |
Action |
---|---|
Tab |
Navigates to the next focusable component. |
Shift+Tab |
Navigates to the previous focusable component. |
Control+Tab |
Navigates to the next focusable component. This navigation works even if the component that previously had focus accepts tabs. |
Left Arrow |
Moves focus left one character or component. |
Right Arrow |
Moves focus right one character or component. |
Up arrow |
Moves focus up one line or component. |
Down arrow |
Moves focus down one line or component. |
Page Up |
Moves up one pane of information. |
Page Down |
Moves down one pane of information. |
Home |
Moves to the beginning of the data. In a table, moves to the beginning of a row. |
End |
Moves to the end of the data. In a table, moves to the last cell in a row. |
Return |
Activates the default command button. |
Escape |
Dismisses a menu or dialog box without changes. Cancels a drag-and-drop operation in progress. |
Spacebar |
Activates the component that has keyboard focus. |