Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
KeyboardJSStatic
Interface KeyboardJSStatic
Index
Properties
clear
combo
key
locale
macro
Methods
activeKeys
disable
enable
on
Properties
public
clear
:
{ key(keyName: string): void; (keyCombo: string): void; }
(
)
public
key
(
)
.keyName.keyName
:
string
public
combo
:
{ active(keyCombo: string): boolean; parse(keyCombo: any): any[]; stringify(keyComboArray: any): string; }
public
active
(
)
:
boolean
Returns
boolean
.keyCombo.keyCombo
:
string
public
parse
(
)
:
Array<any>
Returns
Array<any>
.keyCombo.keyCombo
:
any
public
stringify
(
)
:
string
Returns
string
.keyComboArray.keyComboArray
:
any
public
key
:
{ name(keyCode: number): string[]; code(keyName: string): any; }
public
code
(
)
:
any
Returns
any
.keyName.keyName
:
string
public
name
(
)
:
Array<string>
Returns
Array<string>
.keyCode.keyCode
:
number
public
locale
:
{ register(localeName: string, localeDefinition: KeyboardJSLocale): void; (localeName: string): KeyboardJSLocale; }
(
)
:
KeyboardJSLocale
Returns
KeyboardJSLocale
public
register
(
)
.localeDefinition.localeDefinition
:
KeyboardJSLocale
.localeName.localeName
:
string
public
macro
:
{ remove(keyCombo: string): void; (keyCombo: string, keyNames: string[]): void; }
(
)
public
remove
(
)
.keyCombo.keyCombo
:
string
Methods
public
activeKeys
(
)
:
Array<string>
Returns
Array<string>
public
disable
(
)
public
enable
(
)
public
on
(
keyCombo
:
string
, onDownCallback
?:
(keyEvent: Event, keysPressed: string[], keyCombo: string) => void
, onUpCallback
?:
(keyEvent: Event, keysPressed: string[], keyCombo: string) => void
)
:
KeyboardJSBinding
Parameters
keyCombo:
string
onDownCallback?:
(keyEvent: Event, keysPressed: string[], keyCombo: string) => void
optional
onUpCallback?:
(keyEvent: Event, keysPressed: string[], keyCombo: string) => void
optional
Returns
KeyboardJSBinding
Globals