UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

16 lines (15 loc) 709 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * Screenreaders will often fire fake mousedown events when a focusable element * is activated using the keyboard. We can typically distinguish between these faked * mousedown events and real mousedown events using the "buttons" property. While * real mousedowns will indicate the mouse button that was pressed (e.g. "1" for * the left mouse button), faked mousedowns will usually set the property value to 0. */ export declare function isFakeMousedownFromScreenReader(event: MouseEvent): boolean;