@witchcraft/spellcraft
Github
Issues
npm
Preparing search index...
helpers/getKeyFromEventCode
getKeyFromEventCode
Function getKeyFromEventCode
getKeyFromEventCode
(
code
:
string
,
e
:
|
{
code
:
string
}
|
{
key
:
string
}
|
{
button
:
number
}
|
{
deltaY
:
number
}
,
keys
:
Record
<
string
,
Key
>
,
__namedParameters
?:
{
includeDisabled
?:
boolean
;
pressedState
?:
boolean
}
,
)
:
Result
<
string
[]
,
KnownError
<
"UNKNOWN_KEY_EVENT"
>
>
Parameters
code
:
string
e
:
{
code
:
string
}
|
{
key
:
string
}
|
{
button
:
number
}
|
{
deltaY
:
number
}
keys
:
Record
<
string
,
Key
>
__namedParameters
:
{
includeDisabled
?:
boolean
;
pressedState
?:
boolean
}
= {}
Returns
Result
<
string
[]
,
KnownError
<
"UNKNOWN_KEY_EVENT"
>
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/spellcraft
Loading...