const class fwt::Key

sys::Obj
  fwt::Key

@Js
@Serializable { simple=true }

Source

Key models a keyboard key or key combination.

a

const static Key a := ...

Source

alt

const static Key alt := ...

Source

b

const static Key b := ...

Source

backSlash

const static Key backSlash := ...

Source

backspace

const static Key backspace := ...

Source

backtick

const static Key backtick := ...

Source

c

const static Key c := ...

Source

capsLock

const static Key capsLock := ...

Source

closeBracket

const static Key closeBracket := ...

Source

comma

const static Key comma := ...

Source

command

const static Key command := ...

Source

ctrl

const static Key ctrl := ...

Source

d

const static Key d := ...

Source

delete

const static Key delete := ...

Source

down

const static Key down := ...

Source

e

const static Key e := ...

Source

end

const static Key end := ...

Source

enter

const static Key enter := ...

Source

equals

virtual override Bool equals(Obj? that)

Source

Equality is based on keycode.

esc

const static Key esc := ...

Source

f

const static Key f := ...

Source

f1

const static Key f1 := ...

Source

f10

const static Key f10 := ...

Source

f11

const static Key f11 := ...

Source

f12

const static Key f12 := ...

Source

f2

const static Key f2 := ...

Source

f3

const static Key f3 := ...

Source

f4

const static Key f4 := ...

Source

f5

const static Key f5 := ...

Source

f6

const static Key f6 := ...

Source

f7

const static Key f7 := ...

Source

f8

const static Key f8 := ...

Source

f9

const static Key f9 := ...

Source

fromStr

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

Source

Parse font from string (see toStr). If invalid and checked is true then throw ParseErr otherwise return null.

g

const static Key g := ...

Source

h

const static Key h := ...

Source

hasModifier

Bool hasModifier()

Source

Return if any of the modifier keys are down.

hash

virtual override Int hash()

Source

Hash code is based on keycode.

home

const static Key home := ...

Source

i

const static Key i := ...

Source

insert

const static Key insert := ...

Source

isAlt

Bool isAlt()

Source

Convenience for isDown(alt)

isCommand

Bool isCommand()

Source

Convenience for isDown(comand)

isCtrl

Bool isCtrl()

Source

Convenience for isDown(ctrl)

isDown

Bool isDown(Key modifier)

Source

Return if the specified modifier is down.

isModifier

Bool isModifier()

Source

Is this instance is a modifier which may be combined with other keys: shift, alt, ctrl, command.

isShift

Bool isShift()

Source

Convenience for isDown(shift)

j

const static Key j := ...

Source

k

const static Key k := ...

Source

keypad0

const static Key keypad0 := ...

Source

keypad1

const static Key keypad1 := ...

Source

keypad2

const static Key keypad2 := ...

Source

keypad3

const static Key keypad3 := ...

Source

keypad4

const static Key keypad4 := ...

Source

keypad5

const static Key keypad5 := ...

Source

keypad6

const static Key keypad6 := ...

Source

keypad7

const static Key keypad7 := ...

Source

keypad8

const static Key keypad8 := ...

Source

keypad9

const static Key keypad9 := ...

Source

keypadDiv

const static Key keypadDiv := ...

Source

keypadDot

const static Key keypadDot := ...

Source

keypadEnter

const static Key keypadEnter := ...

Source

keypadEqual

const static Key keypadEqual := ...

Source

keypadMinus

const static Key keypadMinus := ...

Source

keypadMult

const static Key keypadMult := ...

Source

keypadPlus

const static Key keypadPlus := ...

Source

l

const static Key l := ...

Source

left

const static Key left := ...

Source

list

Key[] list()

Source

Decompose a key combination into its individual keys. If instance isn't a combination then return a list with one item (this instance).

m

const static Key m := ...

Source

minus

@Operator
Key minus(Key x)

Source

Remove the key from this combination. Throws ArgErr if x is not defined in this combination or x is not a modifier.

modifiers

Key modifiers()

Source

Return a Key instance with only the modifiers.

n

const static Key n := ...

Source

num0

const static Key num0 := ...

Source

num1

const static Key num1 := ...

Source

num2

const static Key num2 := ...

Source

num3

const static Key num3 := ...

Source

num4

const static Key num4 := ...

Source

num5

const static Key num5 := ...

Source

num6

const static Key num6 := ...

Source

num7

const static Key num7 := ...

Source

num8

const static Key num8 := ...

Source

num9

const static Key num9 := ...

Source

numLock

const static Key numLock := ...

Source

o

const static Key o := ...

Source

openBracket

const static Key openBracket := ...

Source

p

const static Key p := ...

Source

pageDown

const static Key pageDown := ...

Source

pageUp

const static Key pageUp := ...

Source

pause

const static Key pause := ...

Source

period

const static Key period := ...

Source

plus

@Operator
Key plus(Key x)

Source

Add two keys to create a new key combination. Throws ArgErr if neither this nor x returns true true for isModifier.

primary

Key primary()

Source

Decompose the key into its primary key (without modifiers).

printScreen

const static Key printScreen := ...

Source

q

const static Key q := ...

Source

quote

const static Key quote := ...

Source

r

const static Key r := ...

Source

replace

Key replace(Key modFrom, Key modTo)

Source

Replace one modifier with another modifer. If modFrom is not defined in this key, then return this.

const static Key right := ...

Source

s

const static Key s := ...

Source

scrollLock

const static Key scrollLock := ...

Source

semicolon

const static Key semicolon := ...

Source

shift

const static Key shift := ...

Source

slash

const static Key slash := ...

Source

space

const static Key space := ...

Source

t

const static Key t := ...

Source

tab

const static Key tab := ...

Source

toStr

virtual override Str toStr()

Source

Format as key names combined with "+" symbol.

u

const static Key u := ...

Source

up

const static Key up := ...

Source

v

const static Key v := ...

Source

w

const static Key w := ...

Source

x

const static Key x := ...

Source

y

const static Key y := ...

Source

z

const static Key z := ...

Source