const classdom::Key
sys::Obj dom::Key
@Js@Serializable { simple=true }
Key models a key code
- a
const static Key a := ...- alt
const static Key alt := ...- b
const static Key b := ...- backSlash
const static Key backSlash := ...- backspace
const static Key backspace := ...- backtick
const static Key backtick := ...- c
const static Key c := ...- capsLock
const static Key capsLock := ...- closeBracket
const static Key closeBracket := ...- code
const Int codeKey code
- comma
const static Key comma := ...- ctrl
const static Key ctrl := ...- d
const static Key d := ...- dash
const static Key dash := ...- delete
const static Key delete := ...- down
const static Key down := ...- e
const static Key e := ...- end
const static Key end := ...- enter
const static Key enter := ...- equal
const static Key equal := ...- equals
virtual override Bool equals(Obj? that)Equality is based on name.
- esc
const static Key esc := ...- f
const static Key f := ...- f1
const static Key f1 := ...- f10
const static Key f10 := ...- f2
const static Key f2 := ...- f3
const static Key f3 := ...- f4
const static Key f4 := ...- f5
const static Key f5 := ...- f6
const static Key f6 := ...- f7
const static Key f7 := ...- f8
const static Key f8 := ...- f9
const static Key f9 := ...- fromCode
Lookup by key code.
- fromStr
static new fromStr(Str s, Bool checked := true)Lookup by string name or symbol
- g
const static Key g := ...- h
const static Key h := ...- hash
virtual override Int hash()Hash code is based on name.
- home
const static Key home := ...- i
const static Key i := ...- insert
const static Key insert := ...- isModifier
Bool isModifier()Is this one of the modifier keys alt, shift, ctrl, meta
- j
const static Key j := ...- k
const static Key k := ...- l
const static Key l := ...- left
const static Key left := ...- m
const static Key m := ...- meta
const static Key meta := ...- n
const static Key n := ...- name
const Str nameKey name
- num0
const static Key num0 := ...- num1
const static Key num1 := ...- num2
const static Key num2 := ...- num3
const static Key num3 := ...- num4
const static Key num4 := ...- num5
const static Key num5 := ...- num6
const static Key num6 := ...- num7
const static Key num7 := ...- num8
const static Key num8 := ...- num9
const static Key num9 := ...- o
const static Key o := ...- openBracket
const static Key openBracket := ...- p
const static Key p := ...- pageDown
const static Key pageDown := ...- pageUp
const static Key pageUp := ...- period
const static Key period := ...- q
const static Key q := ...- quote
const static Key quote := ...- r
const static Key r := ...- right
const static Key right := ...- s
const static Key s := ...- semicolon
const static Key semicolon := ...- shift
const static Key shift := ...- slash
const static Key slash := ...- space
const static Key space := ...- symbol
const Str? symbolIf this a char symbol such as OpenBracket this is its symbol "[". The arrow keys will return their respective Unicode arrow char.
- t
const static Key t := ...- tab
const static Key tab := ...- toStr
virtual override Str toStr()Return name.
- u
const static Key u := ...- up
const static Key up := ...- v
const static Key v := ...- w
const static Key w := ...- x
const static Key x := ...- y
const static Key y := ...- z
const static Key z := ...