import { default } from "https://deno.land/x/netzo@0.5.106/deps/question/KeyCombo.ts";
A class that represents a key combination of modifier keys and maybe a normal key.
Methods
Test this key combination against a keyboard event. These events might come
from events such as keydown
and keyup
.
toJSON()
Static Methods
parse(str: string): KeyCombo
Parses a key combination from a string. The string should be in a format of
modifier keys and then an actual key. To separate different keys use a plus
(+
). Modifier keys are Ctrl
, Shift
, Alt
(Option
), and the meta key.
The meta modifier key is represented as windows logo, or on mac the text
command, can be represented as Command
, Super
, or Win
.