UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

31 lines (30 loc) • 1.11 kB
import { Handler } from '../../core/Handler.js'; /** * Pans and zooms the map with the keyboard (`map.keyboard`), enabled by default. Rebind keys by changing the static * `KeyboardHandler.keys` object of `KeyboardEvent.key` values per action. */ 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; }