MapKeyEvent
The parts of a keyboard event the map shortcuts read.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { MapKeyEvent } from "@mapcairn/core";
interface MapKeyEvent
Properties
altKey
readonly altKey: boolean;
Whether Alt (Option on a Mac) was held.
ctrlKey
readonly ctrlKey: boolean;
Whether Control was held.
key
readonly key: string;
The key's value, as KeyboardEvent.key gives it.
metaKey
readonly metaKey: boolean;
Whether Meta (Command on a Mac) was held.
shiftKey
readonly shiftKey: boolean;
Whether Shift was held.