Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HotkeysService

Hierarchy

  • HotkeysService

Index

Constructors

Properties

_hotkey: Subject<string> = ...
_hotkeyOff: Subject<string> = ...
_key: Subject<string> = ...
_keyEvent: Subject<KeyboardEvent> = ...
_keystroke: Subject<string> = ...
disabledLevel: number = 0
hotkeyDescriptions: IHotkeyDescription[] = []
lastEventTimestamp: number = 0
lastKeystrokes: PastKeystroke[] = []
pressedHotkey: null | string = null
pressedKeyTimestamps: Map<string, number> = ...
pressedKeys: Set<string> = ...
pressedKeystroke: null | string = null
recognitionPhase: boolean = true

Accessors

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

Methods

  • addPressedKey(keyName: string, eventData: KeyEventData): void
  • clearCurrentKeystrokes(): void
  • disable(): void
  • emitHotkeyOff(hotkey: string): void
  • emitHotkeyOn(hotkey: string): void
  • enable(): void
  • getCurrentKeystrokes(): string[]
  • getHotkeysConfig(): {}
  • getHotkeysConfigRecursive(branch: any): {}
  • isEnabled(): boolean
  • matchActiveHotkey(partial?: boolean): null | string
  • pushKeyEvent(eventName: string, nativeEvent: KeyboardEvent): void
  • removePressedKey(key: string): void

Generated using TypeDoc