Key
src
@Js
@Serializable { simple=true }
const class Key : Obj
Key models a key code
src
const static Key alt := ...
src
const static Key backSlash := ...
src
const static Key backspace := ...
src
const static Key backtick := ...
src
const static Key capsLock := ...
src
const static Key closeBracket := ...
src
const static Key comma := ...
src
const static Key ctrl := ...
src
const static Key dash := ...
src
const static Key delete := ...
src
const static Key down := ...
src
const static Key end := ...
src
const static Key enter := ...
src
const static Key equal := ...
src
virtual override Bool equals(Obj? that)
Equality is based on name.
src
const static Key esc := ...
src
const static Key f1 := ...
src
const static Key f10 := ...
src
const static Key f2 := ...
src
const static Key f3 := ...
src
const static Key f4 := ...
src
const static Key f5 := ...
src
const static Key f6 := ...
src
const static Key f7 := ...
src
const static Key f8 := ...
src
const static Key f9 := ...
src
static Key fromCode(Int code)
Lookup by key code.
src
static new fromStr(Str s, Bool checked := true)
Lookup by string name or symbol
src
virtual override Int hash()
Hash code is based on name.
src
const static Key home := ...
src
const static Key insert := ...
src
Bool isModifier()
Is this one of the modifier keys alt, shift, ctrl, meta
src
const static Key left := ...
src
const static Key meta := ...
src
const static Key num0 := ...
src
const static Key num1 := ...
src
const static Key num2 := ...
src
const static Key num3 := ...
src
const static Key num4 := ...
src
const static Key num5 := ...
src
const static Key num6 := ...
src
const static Key num7 := ...
src
const static Key num8 := ...
src
const static Key num9 := ...
src
const static Key openBracket := ...
src
const static Key pageDown := ...
src
const static Key pageUp := ...
src
const static Key period := ...
src
const static Key quote := ...
src
const static Key right := ...
src
const static Key semicolon := ...
src
const static Key shift := ...
src
const static Key slash := ...
src
const static Key space := ...
src
const Str? symbol
If this a char symbol such as OpenBracket this is its symbol "[". The arrow keys will return their respective Unicode arrow char.
src
const static Key tab := ...
src
const static Key up := ...