class

Key

@Js
@Serializable { simple=true }
const class Key : Obj

Key models a key code

constructors fromStr

Lookup by string name or symbol

fields symbol

If this a char symbol such as OpenBracket this is its symbol "["

f10

shift

f1

openBracket

f2

down

f3

f4

space

f5

f6

f7

f8

f9

quote

closeBracket

tab

enter

up

period

alt

pageUp

left

meta

name

Key name

dash

backSlash

num9

num8

num7

code

Key code

num6

capsLock

ctrl

insert

delete

backspace

num1

num0

end

num5

num4

num3

semicolon

num2

a

b

pageDown

c

d

e

f

g

h

i

j

k

right

l

m

n

home

o

equal

p

q

comma

r

s

esc

t

u

v

w

x

y

slash

z

backtick

methods toStr

Return name

isModifier

Is this one of the modifier keys alt, shift, ctrl, meta

equals

Equality is based on name

hash

Hash code is based on name

fromCode

Lookup by 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 : code

Key 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 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 static Key fromCode(Int code)

Lookup by key code.

fromStr static new fromStr(Str s, Bool checked)

Lookup by string name or symbol

g const static Key : g

h const static Key : h

hash virtual 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 : name

Key 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? : symbol

If 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 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

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST