Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SimpleKeyCombo

Describes a simple key combination that requires no external state tracking (other held keys, keys within N milliseconds, etc.) to fire. For example, Alt+F4 would possibly be represented by:

{ mmkKey: "F4", alt: true }

Or if you wanted only Alt+F4 and to exclude Alt+Ctrl+F4 and other modifier combinations:

{ mmkKey: "F4", alt: true, shift: false, ctrl: false, meta: false }

Hierarchy

Index

Properties

Optional alt

alt: boolean

The Alt key, or Option key on Mac style keyboards.

Optional ctrl

ctrl: boolean

The Control key.

Optional meta

meta: boolean

The Windows key, or Command key on Mac style keyboards.

Optional mmkCode

mmkCode: string

What KeyboardEvent.mmkCode is required for this simple key combination to match.

Optional mmkKey

mmkKey: string

What KeyboardEvent.mmkKey is required for this simple key combination to match.

Optional shift

shift: boolean

The Shift key.

Generated using TypeDoc