Java Sun >
Guidelines Home Page >  Java Look and Feel Design Guidelines
>
Part IV: Backmatter
> A: Keyboard Shortcuts, Mnemonics, and Other Keyboard Operations
  Previous Next Contents/Index/Search


A: Keyboard Shortcuts, Mnemonics, and Other Keyboard Operations

This appendix presents common keyboard shortcuts and mnemonics in alphabetical order and summarizes JFC-supplied keyboard navigation, activation, and selection operations in a series of tables (arranged alphabetically by component). The left column describes a keyboard operation (for example, left arrow key) and the right column of each table describes the corresponding action (for example, moving focus to the left).

Navigating means to move the input focus from one user interface component to another; activating refers to operating the component; selecting means to choose one or more user objects such as text or icons, typically for a subsequent action. For an overview of these concepts, see Keyboard Navigation and Activation.

In general, navigating between components uses these keys:

  • Tab. Moves keyboard focus to the next component or to the first member of the next group of components (the upper-left component in left-to-right reading order).
  • Ctrl-Tab. Moves keyboard focus to the next component or to the first member of the next group of components when the current component accepts a tab (as in text fields, tables, text areas, and tabbed panes).
  • Shift-Tab. Moves keyboard focus to the previous component or to the last component in the previous group of components in precisely the reverse order of the navigation specified by pressing Tab.
  • Ctrl-Shift-Tab. Moves keyboard focus to the previous component or to the last component in the previous group of components in precisely the reverse order of the navigation specified by pressing Tab. Ctrl-Shift-Tab works when the current component accepts tabs.
  • Arrow keys. Move keyboard focus between the individual components within a group of components--for example, between menu items in a menu, between tabs in a tabbed pane, or from character to character in a text field or text component.

Some actions in the table list several possible keyboard operations, separated by a comma. For example, both Home and Ctrl-Home move focus to the beginning of a list.

  Ensure that you provide multiple operations that take into account the differences between operating environments if your application runs on several.

  Some of the keyboard operations described in the following tables might be temporarily incomplete or not implemented. However, these key sequences should be reserved for future versions of the JFC and the Java 2 platform.

  The arrow keys are insensitive to the component orientation feature in the Java 2 SDK. (Component orientation is the automatic positioning of components to reflect the writing system of a locale--for instance, left to right, or right to left.) For example, the right arrow moves the action right regardless of the orientation of the locale.

Common Keyboard Shortcuts

The following table provides an alphabetically sorted list of common keyboard shortcuts. Use this table to see which keyboard shortcuts are used and which are available. (You can use these shortcuts for other purposes if your application does not provide the associated function and will not add that function in the foreseeable future.) For a table of keyboard shortcuts organized according to menus, see Table 8.

 

Sequence Equivalent
Ctrl-A Select All (Edit menu)
Ctrl-B Bold (Format menu)
Ctrl-C Copy (Edit menu)
Ctrl-E Align Center (Format menu)
Ctrl-F Find (Edit menu)
Ctrl-G Find Again (Edit menu)
Ctrl-H Replace (Edit menu)
Ctrl-I Italic (Format menu)
Ctrl-L Align Left (Format menu)
Ctrl-N New (File menu)
Ctrl-O Open (File menu)
Ctrl-P Print (File menu)
Ctrl-R Align Right (Format menu)
Ctrl-S Save (File menu)
Ctrl-U Underline (Format menu)
Ctrl-V Paste (Edit menu)
Ctrl-W Close (File menu)
Ctrl-X Cut (Edit menu)
Ctrl-Y Redo (Edit menu)
Ctrl-Z Undo (Edit menu)
Delete Delete (Edit menu)
F1 Help
F5 Refresh
Shift-F1 Contextual help






Java Look and Feel Design Guidelines, second edition.
Copyright 2001. Sun Microsystems, Inc. All Rights Reserved.
Previous Next Contents/Index/Search
Table 12   Alphabetical List of Common Keyboard Shortcuts 
Left Curve
Java SDKs and Tools
Right Curve
Left Curve
Java Resources
Right Curve
JavaOne Banner
Java 8 banner (182)