Provides support for formatting key sequences.
This is a collection fo various formatters for key sequences. The formatters
are accessible through the
KeyFormatterFactory. To change how
keys are formatted in the user interface, call
KeyFormatterFactory.setDefault(IKeyFormatter). They provided
- Provides a formal grammar for reading and writing key sequences.
- Provide a native-looking, human-readable format for keys.
- A variation of the native formatter that provides a more compact representation.
- An Xemacs-style formatter (e.g., C^x C^x).
Interface Summary Interface Description IKeyFormatterAny formatter capable of taking a key sequence or a key stroke and converting it into a string.
Class Summary Class Description AbstractKeyFormatterAn abstract implementation of a key formatter that provides a lot of common key formatting functionality. EmacsKeyFormatterA key formatter providing the Emacs-style accelerators using single letters to represent the modifier keys. FormalKeyFormatterFormats the keys in the internal key sequence grammar. KeyFormatterFactoryA cache for formatters. NativeKeyFormatterFormats the key sequences and key strokes into the native human-readable format.