fake-mousedown.d.ts 709 B

123456789101112131415
  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. /**
  9. * Screenreaders will often fire fake mousedown events when a focusable element
  10. * is activated using the keyboard. We can typically distinguish between these faked
  11. * mousedown events and real mousedown events using the "buttons" property. While
  12. * real mousedowns will indicate the mouse button that was pressed (e.g. "1" for
  13. * the left mouse button), faked mousedowns will usually set the property value to 0.
  14. */
  15. export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;