index.d.ts 494 B

12345678910
  1. import { Dom } from '../dom';
  2. export type ModifierKey = 'alt' | 'ctrl' | 'meta' | 'shift';
  3. export declare namespace ModifierKey {
  4. function parse(modifiers: string | ModifierKey[]): {
  5. or: ModifierKey[];
  6. and: ModifierKey[];
  7. };
  8. function equals(modifiers1?: string | ModifierKey[] | null, modifiers2?: string | ModifierKey[] | null): boolean;
  9. function isMatch(e: Dom.EventObject | WheelEvent, modifiers?: string | ModifierKey[] | null, strict?: boolean): boolean;
  10. }