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 Div
getElement(String key)
Returns theDiv
element which describes the modifier key.
It can be used in UI if needed.static Div
getElement(IsKeyboardKey key)
Returns theDiv
element which describes the modifier key.
It can be used in UI if needed.default boolean
is(String key)
Returnstrue
if the key is the same of the event.default boolean
is(NativeBaseEvent event)
Returnstrue
if the key is the same of the event.default boolean
is(HasNativeEvent event)
Returnstrue
if the key is the same of the event.
-
-
-
Method Detail
-
getElement
static Div getElement(IsKeyboardKey key)
Returns theDiv
element which describes the modifier key.
It can be used in UI if needed.- Parameters:
key
- the keyboard key to use inkbd
tag.- Returns:
- the
Div
element which describes the modifier key
-
getElement
static Div getElement(String key)
Returns theDiv
element which describes the modifier key.
It can be used in UI if needed.- Parameters:
key
- the keyboard key to use inkbd
tag.- Returns:
- the
Div
element which describes the modifier key
-
is
default boolean is(HasNativeEvent event)
Returnstrue
if the key is the same of the event.- Parameters:
event
- instance of event container to be checked- Returns:
true
if the key is the same of the event
-
is
default boolean is(NativeBaseEvent event)
Returnstrue
if the key is the same of the event.- Parameters:
event
- instance of native event to be checked- Returns:
true
if the key is the same of the event
-
is
default boolean is(String key)
Returnstrue
if the key is the same of the event.- Parameters:
key
- key as string to compare- Returns:
true
if the key is the same of the event
-
-