type

Key

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

Key models a key code

constructors

fromStr

Lookup by string name or symbol

fields

methods

equals

Equality is based on name.

fromCode

Lookup by key code.

hash

Hash code is based on name.

isModifier

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

toStr

Return name.

Slot Details

a

src const static Key a := ...

alt

src const static Key alt := ...

b

src const static Key b := ...

backSlash

src const static Key backSlash := ...

backspace

src const static Key backspace := ...

backtick

src const static Key backtick := ...

c

src const static Key c := ...

capsLock

src const static Key capsLock := ...

closeBracket

src const static Key closeBracket := ...

code

src const Int code

Key code

comma

src const static Key comma := ...

ctrl

src const static Key ctrl := ...

d

src const static Key d := ...

dash

src const static Key dash := ...

delete

src const static Key delete := ...

down

src const static Key down := ...

e

src const static Key e := ...

end

src const static Key end := ...

enter

src const static Key enter := ...

equal

src const static Key equal := ...

equals

src virtual override Bool equals(Obj? that)

Equality is based on name.

esc

src const static Key esc := ...

f

src const static Key f := ...

f1

src const static Key f1 := ...

f10

src const static Key f10 := ...

f2

src const static Key f2 := ...

f3

src const static Key f3 := ...

f4

src const static Key f4 := ...

f5

src const static Key f5 := ...

f6

src const static Key f6 := ...

f7

src const static Key f7 := ...

f8

src const static Key f8 := ...

f9

src const static Key f9 := ...

fromCode

src static Key fromCode(Int code)

Lookup by key code.

fromStr

src static new fromStr(Str s, Bool checked := true)

Lookup by string name or symbol

g

src const static Key g := ...

h

src const static Key h := ...

hash

src virtual override Int hash()

Hash code is based on name.

home

src const static Key home := ...

i

src const static Key i := ...

insert

src const static Key insert := ...

isModifier

src Bool isModifier()

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

j

src const static Key j := ...

k

src const static Key k := ...

l

src const static Key l := ...

left

src const static Key left := ...

m

src const static Key m := ...

meta

src const static Key meta := ...

n

src const static Key n := ...

name

src const Str name

Key name

num0

src const static Key num0 := ...

num1

src const static Key num1 := ...

num2

src const static Key num2 := ...

num3

src const static Key num3 := ...

num4

src const static Key num4 := ...

num5

src const static Key num5 := ...

num6

src const static Key num6 := ...

num7

src const static Key num7 := ...

num8

src const static Key num8 := ...

num9

src const static Key num9 := ...

o

src const static Key o := ...

openBracket

src const static Key openBracket := ...

p

src const static Key p := ...

pageDown

src const static Key pageDown := ...

pageUp

src const static Key pageUp := ...

period

src const static Key period := ...

q

src const static Key q := ...

quote

src const static Key quote := ...

r

src const static Key r := ...

src const static Key right := ...

s

src const static Key s := ...

semicolon

src const static Key semicolon := ...

shift

src const static Key shift := ...

slash

src const static Key slash := ...

space

src const static Key space := ...

symbol

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.

t

src const static Key t := ...

tab

src const static Key tab := ...

toStr

src virtual override Str toStr()

Return name.

u

src const static Key u := ...

up

src const static Key up := ...

v

src const static Key v := ...

w

src const static Key w := ...

x

src const static Key x := ...

y

src const static Key y := ...

z

src const static Key z := ...