Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HotkeysService

Hierarchy

  • HotkeysService

Index

Accessors

  • get hotkey$(): Observable<string>
  • get hotkeyOff$(): Observable<string>
  • get key$(): Observable<string>
  • get keyEvent$(): Observable<KeyboardEvent>
  • get keystroke$(): Observable<string>

Methods

  • clearCurrentKeystrokes(): void
  • disable(): void
  • enable(): void
  • getCurrentKeystrokes(): string[]
  • isEnabled(): boolean
  • matchActiveHotkey(partial?: boolean): null | string
  • pushKeyEvent(eventName: string, nativeEvent: KeyboardEvent): void
  • Adds a new key event to the buffer

    Parameters

    • eventName: string

      DOM event name

    • nativeEvent: KeyboardEvent

      event object

    Returns void

Generated using TypeDoc