public interface ShortcutKeyHelper
Helper class that encapsulates the modifier keys for shortcut key combinations in a platform-specific way.
Use isShortcut(KeyCodeEvent, int)
or
isShortcut(NativeEvent, int)
in your key handlers to determine if
the key pressed is a shortcut key combination. Use
getShortcutString(char)
to get a String representation of a
particular shortcut key combination (for displaying in help text in a
platform-specific way).
Modifier and Type | Method and Description |
---|---|
String |
getShortcutString(char shortcutCharacter) |
boolean |
isShortcut(KeyCodeEvent<?> event,
int nativeKeyCode) |
boolean |
isShortcut(NativeEvent event,
int nativeKeyCode) |
boolean isShortcut(KeyCodeEvent<?> event, int nativeKeyCode)
boolean isShortcut(NativeEvent event, int nativeKeyCode)
String getShortcutString(char shortcutCharacter)