Package com.opencloud.rem.client.ui
Interface ShortcutKeyHelper
-
- All Known Implementing Classes:
ShortcutKeyHelperImpl
,ShortcutKeyHelperMacImpl
public interface ShortcutKeyHelper
Helper class that encapsulates the modifier keys for shortcut key combinations in a platform-specific way.
Use
isShortcut(KeyCodeEvent, int)
orisShortcut(NativeEvent, int)
in your key handlers to determine if the key pressed is a shortcut key combination. UsegetShortcutString(char)
to get a String representation of a particular shortcut key combination (for displaying in help text in a platform-specific way).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getShortcutString(char shortcutCharacter)
boolean
isShortcut(NativeEvent event, int nativeKeyCode)
boolean
isShortcut(KeyCodeEvent<?> event, int nativeKeyCode)
-
-
-
Method Detail
-
isShortcut
boolean isShortcut(KeyCodeEvent<?> event, int nativeKeyCode)
-
isShortcut
boolean isShortcut(NativeEvent event, int nativeKeyCode)
-
getShortcutString
String getShortcutString(char shortcutCharacter)
-
-