Interface IsKeyboardKey
-
- All Superinterfaces:
Key
- All Known Implementing Classes:
KeyboardCommonKey,KeyboardEditingKey,KeyboardFunctionKey,KeyboardModifierKey,KeyboardNavigationKey,KeyboardUiKey,KeyboardWhitespaceKey
public interface IsKeyboardKey extends Key
Maps a keyboard key methods.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DivgetElement(String key)Returns theDivelement which describes the modifier key.
It can be used in UI if needed.static DivgetElement(IsKeyboardKey key)Returns theDivelement which describes the modifier key.
It can be used in UI if needed.default booleanis(String key)Returnstrueif the key is the same of the event.default booleanis(NativeBaseEvent event)Returnstrueif the key is the same of the event.default booleanis(HasNativeEvent event)Returnstrueif the key is the same of the event.
-
-
-
Method Detail
-
getElement
static Div getElement(IsKeyboardKey key)
Returns theDivelement which describes the modifier key.
It can be used in UI if needed.- Parameters:
key- the keyboard key to use inkbdtag.- Returns:
- the
Divelement which describes the modifier key
-
getElement
static Div getElement(String key)
Returns theDivelement which describes the modifier key.
It can be used in UI if needed.- Parameters:
key- the keyboard key to use inkbdtag.- Returns:
- the
Divelement which describes the modifier key
-
is
default boolean is(HasNativeEvent event)
Returnstrueif the key is the same of the event.- Parameters:
event- instance of event container to be checked- Returns:
trueif the key is the same of the event
-
is
default boolean is(NativeBaseEvent event)
Returnstrueif the key is the same of the event.- Parameters:
event- instance of native event to be checked- Returns:
trueif the key is the same of the event
-
is
default boolean is(String key)
Returnstrueif the key is the same of the event.- Parameters:
key- key as string to compare- Returns:
trueif the key is the same of the event
-
-