Octra libraries - v2.0.0
Preparing search index...
@octra/web-media
ShortcutManager
Class ShortcutManager
manages all supported shortcuts
Index
Constructors
constructor
Properties
general
Shortcuts
shortcuts
Enabled
Accessors
pressed
Keys
shortcuts
Methods
check
Key
Event
clear
Shortcuts
disable
Shortcut
Group
enable
Shortcut
Group
get
Command
By
Event
get
Shorcut
Combination
get
Shortcut
Group
register
Shortcut
Group
reset
Pressed
Keys
unregister
Item
From
Group
unregister
Shortcut
Group
Constructors
constructor
new
ShortcutManager
()
:
ShortcutManager
Returns
ShortcutManager
Properties
general
Shortcuts
generalShortcuts
:
ShortcutGroup
= ...
shortcuts
Enabled
shortcutsEnabled
:
boolean
= true
Accessors
pressed
Keys
get
pressedKeys
()
:
{
alt
:
boolean
;
cmd
:
boolean
;
ctrl
:
boolean
;
other
:
number
;
shift
:
boolean
;
}
Returns
{
alt
:
boolean
;
cmd
:
boolean
;
ctrl
:
boolean
;
other
:
number
;
shift
:
boolean
}
shortcuts
get
shortcuts
()
:
ShortcutGroup
[]
Returns
ShortcutGroup
[]
Methods
check
Key
Event
checkKeyEvent
(
event
:
KeyboardEvent
,
timestamp
:
number
,
checkPressKey
?:
boolean
,
)
:
undefined
|
ShortcutEvent
Parameters
event
:
KeyboardEvent
timestamp
:
number
checkPressKey
:
boolean
= true
Returns
undefined
|
ShortcutEvent
clear
Shortcuts
clearShortcuts
()
:
void
Returns
void
disable
Shortcut
Group
disableShortcutGroup
(
name
:
string
)
:
void
Parameters
name
:
string
Returns
void
enable
Shortcut
Group
enableShortcutGroup
(
name
:
string
)
:
void
Parameters
name
:
string
Returns
void
get
Command
By
Event
getCommandByEvent
(
event
:
KeyboardEvent
,
)
:
undefined
|
{
groupName
:
string
;
shortcut
:
Shortcut
}
Parameters
event
:
KeyboardEvent
Returns
undefined
|
{
groupName
:
string
;
shortcut
:
Shortcut
}
get
Shorcut
Combination
getShorcutCombination
(
event
:
KeyboardEvent
)
:
string
Parameters
event
:
KeyboardEvent
Returns
string
get
Shortcut
Group
getShortcutGroup
(
name
:
string
)
:
undefined
|
ShortcutGroup
Parameters
name
:
string
Returns
undefined
|
ShortcutGroup
register
Shortcut
Group
registerShortcutGroup
(
shortcutGroup
:
ShortcutGroup
)
:
void
Parameters
shortcutGroup
:
ShortcutGroup
Returns
void
reset
Pressed
Keys
resetPressedKeys
()
:
void
Returns
void
unregister
Item
From
Group
unregisterItemFromGroup
(
groupName
:
string
,
itemName
:
string
)
:
void
Parameters
groupName
:
string
itemName
:
string
Returns
void
unregister
Shortcut
Group
unregisterShortcutGroup
(
groupName
:
string
)
:
void
Parameters
groupName
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
general
Shortcuts
shortcuts
Enabled
Accessors
pressed
Keys
shortcuts
Methods
check
Key
Event
clear
Shortcuts
disable
Shortcut
Group
enable
Shortcut
Group
get
Command
By
Event
get
Shorcut
Combination
get
Shortcut
Group
register
Shortcut
Group
reset
Pressed
Keys
unregister
Item
From
Group
unregister
Shortcut
Group
Octra libraries - v2.0.0
Loading...
manages all supported shortcuts