key-input
Custom elements to input key press events.
See this HTML source.
<input is="key-input" />
raw-mod
Bool Attribute: multiple
Bool Attribute:
multiple
and raw-mod
:
ShiftLeft
and ShiftRight
.
ignore
attribute:
Tab
and
KeyA
.
This package provide classes to match KeyboardEvent
.
KeyInputMatcher
KeyInputMatcher
is a class to match the latest
KeyboardEvent
with a provided pattern.
Press any key in the following input element. The
KeyInputMatcher
is built with
Shift + KeyA + KeyS + KeyD
. The result of matching with the input
element is displayed in the following output elements. The result is
true
if the input element matches with each condition.
key-input
element:
historySensitive=ignore
true
if you input Shift + KeyD
historySensitive=orderInsensitive
(default)true
if you input KeyD
with holding down
any Shift
keys, KeyA
and KeyS
.
historySensitive=orderSensitive
true
if you input KeyD
with holding down
any Shift
keys, KeyA
and KeyS
with
the order.
KeyHoldMatcher
KeyHoldMatcher
is a class to match the history of
KeyboardEvent
with a provided pattern.
Press any key in the following input element. The
KeyHoldMatcher
is built with
Shift + ShiftLeft + KeyA + KeyS
. The result of matching with the
input element is displayed in the following output elements. The result is
true
if the input element matches with each condition.
key-input
element:
rawMod=false
(default)true
if you hold KeyA + KeyS
with any
Shift
keys.
rawMod=true
true
if you hold ShiftLeft + KeyA + KeyS
.