import { default } from "https://deno.land/x/netzo@0.5.107/deps/question/KeyCombo.ts";
A class that represents a key combination of modifier keys and maybe a normal key.
Methods
Get the string parts for this key combo.
Get the string parts for a Linux / Unix system of this key combo.
Get the string parts for a MacOS system of this key combo.
Get the string parts for a Windows system of this key combo.
Test this key combination against a keyboard event. These events might come
from events such as keydown
and keyup
.
Get the string representation for this key combo.
Get a string representation of this key combination for Linux / Unix systems.
Get a string representation of this key combination for MacOS systems.
Get a string representation of this key combination for Windows systems.
Static Methods
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
.