ActionRepository

public protocol ActionRepository : class

Represents the action repository.

  • Get the applicable actions for the given key event and the actionContext.

    Declaration

    Swift

    func getApplicableActions(_ event: NSEvent, _ actionContext: ActionContext) -> [Action]

    Return Value

    the array of applicable actions.

  • Get all available actions.

    Declaration

    Swift

    var actions: [Action]
  • Get an action with the given id.

    Declaration

    Swift

    subscript(id: String) -> Action?
  • Get the first hotkey for the action, or nil if no key bindings are set.

    Declaration

    Swift

    func getHotkey(for action: Action) -> Hotkey?
  • Get all hotkeys for the action.

    Declaration

    Swift

    func getHotkeys(for action: Action) -> [Hotkey]