modifiers.d.ts 477 B

1234567891011121314
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. declare type ModifierKey = 'altKey' | 'shiftKey' | 'ctrlKey' | 'metaKey';
  9. /**
  10. * Checks whether a modifier key is pressed.
  11. * @param event Event to be checked.
  12. */
  13. export declare function hasModifierKey(event: KeyboardEvent, ...modifiers: ModifierKey[]): boolean;
  14. export {};