Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HotkeysService

Hierarchy

  • HotkeysService

Index

Properties

globalHotkey

globalHotkey: EventEmitter<Object> = new EventEmitter()

key

key: EventEmitter<KeyboardEvent> = new EventEmitter<KeyboardEvent>()

matchedHotkey

matchedHotkey: EventEmitter<string> = new EventEmitter<string>()

Methods

clearCurrentKeystrokes

  • clearCurrentKeystrokes(): void

disable

  • disable(): void

emitKeyEvent

  • emitKeyEvent(nativeEvent: KeyboardEvent): void

enable

  • enable(): void

getCurrentFullyMatchedHotkey

  • getCurrentFullyMatchedHotkey(): string

getCurrentKeystrokes

  • getCurrentKeystrokes(): string[]

getCurrentPartiallyMatchedHotkeys

getHotkeyDescription

getHotkeyDescriptions

isEnabled

  • isEnabled(): boolean

processKeystrokes

  • processKeystrokes(): void

pushKeystroke

  • pushKeystroke(name: string, nativeEvent: KeyboardEvent): void
  • Adds a new key event to the buffer

    Parameters

    • name: string

      DOM event name

    • nativeEvent: KeyboardEvent

      event object

    Returns void

Generated using TypeDoc