UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

28 lines (27 loc) • 973 B
import { Handler } from '../../core/Handler.js'; /** @import {Marker} from '../../layer/marker/Marker.js' */ export declare class KeyboardHandler extends Handler { _focused: boolean | undefined; /** * The [`KeyboardEvent.key`](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) values for each action, * which can be changed to rebind keys. Zoom keys follow the keyboard layout and cover the numpad, and `=`/`_` keep * the US `+`/`-` keys working both with and without Shift. */ static keys: { left: string[]; right: string[]; down: string[]; up: string[]; zoomIn: string[]; zoomOut: string[]; }; addHooks(): void; removeHooks(): void; _onPointerDown(): void; _onFocus(): void; _onBlur(): void; /** @param {KeyboardEvent} e */ _onContainerKeyDown(e: KeyboardEvent): void; /** @param {KeyboardEvent} e */ _onKeyDown(e: KeyboardEvent): void; }