tuil
ReferencePackages@mwillbanks/tuil-hotkeysAPI

HotkeyEvent

interface exported by @mwillbanks/tuil-hotkeys.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-hotkeys.

export interface HotkeyEvent {
  readonly keys: string;
  readonly input: string;
  readonly sequence: readonly string[];
  readonly binding: HotkeyBinding;
  defaultPrevented: boolean;
  preventDefault(): void;
}

Members

MemberTypeRequiredDescriptionRelated types
keysstringYesThe keys member uses the string contract.
inputstringYesThe input member uses the string contract.
sequencereadonly string[]YesThe sequence member uses the readonly string[] contract.
bindingHotkeyBindingYesThe binding member uses the HotkeyBinding contract.HotkeyBinding
defaultPreventedbooleanYesThe defaultPrevented member uses the boolean contract.
preventDefault() => voidYesThe preventDefault member uses the () => void contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-hotkeys

On this page