Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HotkeysService

Hierarchy

  • HotkeysService

Index

Properties

key

key: EventEmitter<KeyboardEvent> = ...

Accessors

hotkey$

  • get hotkey$(): Observable<string>

Methods

clearCurrentKeystrokes

  • clearCurrentKeystrokes(): void

disable

  • disable(): void

emitKeyEvent

  • emitKeyEvent(nativeEvent: KeyboardEvent): void

enable

  • enable(): void

getCurrentFullyMatchedHotkey

  • getCurrentFullyMatchedHotkey(): null | string

getCurrentKeystrokes

  • getCurrentKeystrokes(): string[]

getCurrentPartiallyMatchedHotkeys

  • getCurrentPartiallyMatchedHotkeys(): PartialHotkeyMatch[]

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