Preparing search index...
The search index is not available
Octra libraries - v2.0.0
Octra libraries
@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
Shortcut
Manager
(
)
:
ShortcutManager
Returns
ShortcutManager
Properties
general
Shortcuts
general
Shortcuts
:
ShortcutGroup
= ...
shortcuts
Enabled
shortcuts
Enabled
:
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
;
}
alt
:
boolean
cmd
:
boolean
ctrl
:
boolean
other
:
number
shift
:
boolean
shortcuts
get
shortcuts
(
)
:
ShortcutGroup
[]
Returns
ShortcutGroup
[]
Methods
check
Key
Event
check
Key
Event
(
event
,
timestamp
,
checkPressKey
?
)
:
undefined
|
ShortcutEvent
Parameters
event
:
KeyboardEvent
timestamp
:
number
checkPressKey
:
boolean
= true
Returns
undefined
|
ShortcutEvent
clear
Shortcuts
clear
Shortcuts
(
)
:
void
Returns
void
disable
Shortcut
Group
disable
Shortcut
Group
(
name
)
:
void
Parameters
name
:
string
Returns
void
enable
Shortcut
Group
enable
Shortcut
Group
(
name
)
:
void
Parameters
name
:
string
Returns
void
get
Command
By
Event
get
Command
By
Event
(
event
)
:
undefined
|
{
groupName
:
string
;
shortcut
:
Shortcut
;
}
Parameters
event
:
KeyboardEvent
Returns
undefined
|
{
groupName
:
string
;
shortcut
:
Shortcut
;
}
get
Shorcut
Combination
get
Shorcut
Combination
(
event
)
:
string
Parameters
event
:
KeyboardEvent
Returns
string
get
Shortcut
Group
get
Shortcut
Group
(
name
)
:
undefined
|
ShortcutGroup
Parameters
name
:
string
Returns
undefined
|
ShortcutGroup
register
Shortcut
Group
register
Shortcut
Group
(
shortcutGroup
)
:
void
Parameters
shortcutGroup
:
ShortcutGroup
Returns
void
reset
Pressed
Keys
reset
Pressed
Keys
(
)
:
void
Returns
void
unregister
Item
From
Group
unregister
Item
From
Group
(
groupName
,
itemName
)
:
void
Parameters
groupName
:
string
itemName
:
string
Returns
void
unregister
Shortcut
Group
unregister
Shortcut
Group
(
groupName
)
:
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