Preparing search index...
The search index is not available
kokomi.js
kokomi.js
Keyboard
Class Keyboard
An encapsuled class to get keyboard key.
Index
Constructors
constructor
Properties
keys
Accessors
is
Backspace
Key
Down
is
Ctrl
Key
Down
is
Down
Key
Down
is
Enter
Key
Down
is
Esc
Key
Down
is
Left
Key
Down
is
Right
Key
Down
is
Shift
Key
Down
is
Space
Key
Down
is
Tab
Key
Down
is
Up
Key
Down
Methods
listen
For
Key
on
Key
Down
on
Key
Up
Constructors
constructor
new
Keyboard
(
)
:
Keyboard
Returns
Keyboard
Properties
keys
keys
:
Record
<
string
,
boolean
>
Accessors
is
Backspace
Key
Down
get
isBackspaceKeyDown
(
)
:
boolean
Returns
boolean
is
Ctrl
Key
Down
get
isCtrlKeyDown
(
)
:
boolean
Returns
boolean
is
Down
Key
Down
get
isDownKeyDown
(
)
:
boolean
Returns
boolean
is
Enter
Key
Down
get
isEnterKeyDown
(
)
:
boolean
Returns
boolean
is
Esc
Key
Down
get
isEscKeyDown
(
)
:
boolean
Returns
boolean
is
Left
Key
Down
get
isLeftKeyDown
(
)
:
boolean
Returns
boolean
is
Right
Key
Down
get
isRightKeyDown
(
)
:
boolean
Returns
boolean
is
Shift
Key
Down
get
isShiftKeyDown
(
)
:
boolean
Returns
boolean
is
Space
Key
Down
get
isSpaceKeyDown
(
)
:
boolean
Returns
boolean
is
Tab
Key
Down
get
isTabKeyDown
(
)
:
boolean
Returns
boolean
is
Up
Key
Down
get
isUpKeyDown
(
)
:
boolean
Returns
boolean
Methods
listen
For
Key
listen
For
Key
(
)
:
void
Returns
void
on
Key
Down
on
Key
Down
(
e
)
:
void
Parameters
e
:
KeyboardEvent
Returns
void
on
Key
Up
on
Key
Up
(
e
)
:
void
Parameters
e
:
KeyboardEvent
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
keys
Accessors
is
Backspace
Key
Down
is
Ctrl
Key
Down
is
Down
Key
Down
is
Enter
Key
Down
is
Esc
Key
Down
is
Left
Key
Down
is
Right
Key
Down
is
Shift
Key
Down
is
Space
Key
Down
is
Tab
Key
Down
is
Up
Key
Down
Methods
listen
For
Key
on
Key
Down
on
Key
Up
kokomi.js
Loading...
An encapsuled class to get keyboard key.