store.shortcuts. actions

Methods

(static) clear()

Clear all shortcuts

(static) get(shortcut) → {Object}

Get a shortcut by object

Parameters:
NameTypeDescription
shortcutObject
Returns:

the shortcut object matching the object

Type: 
Object

(static) get_key(key)

Get a shortcut by key

Parameters:
NameTypeDescription
keyString

(static) is_active(shortName) → {Boolean}

Check if a shortcut is active

Parameters:
NameTypeDescription
shortNameString
Returns:

state

Type: 
Boolean

(static) register(shortcut, skipSort)

Register a new shortcut

Parameters:
NameTypeDescription
shortcutObject
skipSortBoolean

(static) register_all(list, tag)

Register a list of shortcuts with a given tag

Parameters:
NameTypeDescription
listArray
tagString

(static) remove(shortcut)

Remove a shortcut

Parameters:
NameTypeDescription
shortcutObject

(static) remove_all(list, tag)

Remove all shortcuts with a given tag

Parameters:
NameTypeDescription
listArray
tagString

(static) remove_key(key)

Remove a shortcut by key

Parameters:
NameTypeDescription
keyString

(static) remove_keys(keys)

Remove shortcuts with any of the given keys

Parameters:
NameTypeDescription
keysArray

(static) remove_tag(tag)

Remove all shortcuts with a given tag

Parameters:
NameTypeDescription
tagString

(static) set_activity(state, shortName)

Set the activity state of a shortcut

Parameters:
NameTypeDescription
stateBoolean
shortNameString

(static) sort()

Sort the shortcuts