- Source
Methods
(static) clear()
Clear all shortcuts
- Source
(static) get(shortcut) → {Object}
Get a shortcut by object
Parameters:
Name | Type | Description |
---|---|---|
shortcut | Object |
- Source
Returns:
the shortcut object matching the object
- Type:
- Object
(static) get_key(key)
Get a shortcut by key
Parameters:
Name | Type | Description |
---|---|---|
key | String |
- Source
(static) is_active(shortName) → {Boolean}
Check if a shortcut is active
Parameters:
Name | Type | Description |
---|---|---|
shortName | String |
- Source
Returns:
state
- Type:
- Boolean
(static) register(shortcut, skipSort)
Register a new shortcut
Parameters:
Name | Type | Description |
---|---|---|
shortcut | Object | |
skipSort | Boolean |
- Source
(static) register_all(list, tag)
Register a list of shortcuts with a given tag
Parameters:
Name | Type | Description |
---|---|---|
list | Array | |
tag | String |
- Source
(static) remove(shortcut)
Remove a shortcut
Parameters:
Name | Type | Description |
---|---|---|
shortcut | Object |
- Source
(static) remove_all(list, tag)
Remove all shortcuts with a given tag
Parameters:
Name | Type | Description |
---|---|---|
list | Array | |
tag | String |
- Source
(static) remove_key(key)
Remove a shortcut by key
Parameters:
Name | Type | Description |
---|---|---|
key | String |
- Source
(static) remove_keys(keys)
Remove shortcuts with any of the given keys
Parameters:
Name | Type | Description |
---|---|---|
keys | Array |
- Source
(static) remove_tag(tag)
Remove all shortcuts with a given tag
Parameters:
Name | Type | Description |
---|---|---|
tag | String |
- Source
(static) set_activity(state, shortName)
Set the activity state of a shortcut
Parameters:
Name | Type | Description |
---|---|---|
state | Boolean | |
shortName | String |
- Source
(static) sort()
Sort the shortcuts
- Source