const class fwt::Key
sys::Obj fwt::Key
@Js@Serializable { simple=true }
Key models a keyboard key or key combination.
- 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 := ... - comma
-
const static Key comma := ... - command
-
const static Key command := ... - ctrl
-
const static Key ctrl := ... - d
-
const static Key d := ... - 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 := ... - equals
-
virtual override Bool equals(Obj? that)Equality is based on keycode.
- esc
-
const static Key esc := ... - f
-
const static Key f := ... - f1
-
const static Key f1 := ... - f10
-
const static Key f10 := ... - f11
-
const static Key f11 := ... - f12
-
const static Key f12 := ... - 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 := ... - fromStr
-
static new fromStr(Str s, Bool checked := true)Parse font from string (see
toStr). If invalid and checked is true then throw ParseErr otherwise return null. - g
-
const static Key g := ... - h
-
const static Key h := ... - hasModifier
-
Bool hasModifier()Return if any of the modifier keys are down.
- hash
-
virtual override Int hash()Hash code is based on keycode.
- home
-
const static Key home := ... - i
-
const static Key i := ... - insert
-
const static Key insert := ... - isAlt
-
Bool isAlt()Convenience for
isDown(alt) - isCommand
-
Bool isCommand()Convenience for
isDown(comand) - isCtrl
-
Bool isCtrl()Convenience for
isDown(ctrl) - isDown
-
Return if the specified modifier is down.
- isModifier
-
Bool isModifier()Is this instance is a modifier which may be combined with other keys: shift, alt, ctrl, command.
- isShift
-
Bool isShift()Convenience for
isDown(shift) - j
-
const static Key j := ... - k
-
const static Key k := ... - keypad0
-
const static Key keypad0 := ... - keypad1
-
const static Key keypad1 := ... - keypad2
-
const static Key keypad2 := ... - keypad3
-
const static Key keypad3 := ... - keypad4
-
const static Key keypad4 := ... - keypad5
-
const static Key keypad5 := ... - keypad6
-
const static Key keypad6 := ... - keypad7
-
const static Key keypad7 := ... - keypad8
-
const static Key keypad8 := ... - keypad9
-
const static Key keypad9 := ... - keypadDiv
-
const static Key keypadDiv := ... - keypadDot
-
const static Key keypadDot := ... - keypadEnter
-
const static Key keypadEnter := ... - keypadEqual
-
const static Key keypadEqual := ... - keypadMinus
-
const static Key keypadMinus := ... - keypadMult
-
const static Key keypadMult := ... - keypadPlus
-
const static Key keypadPlus := ... - l
-
const static Key l := ... - left
-
const static Key left := ... - list
-
Key[] list()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 := ... - minus
-
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()Return a Key instance with only the modifiers.
- n
-
const static Key n := ... - 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 := ... - numLock
-
const static Key numLock := ... - 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 := ... - pause
-
const static Key pause := ... - period
-
const static Key period := ... - plus
-
Add two keys to create a new key combination. Throws ArgErr if neither this nor x returns true true for
isModifier. - primary
-
Key primary()Decompose the key into its primary key (without modifiers).
- printScreen
-
const static Key printScreen := ... - q
-
const static Key q := ... - quote
-
const static Key quote := ... - r
-
const static Key r := ... - replace
-
Key replace(Key modFrom, Key modTo)Replace one modifier with another modifer. If modFrom is not defined in this key, then return this.
- right
-
const static Key right := ... - s
-
const static Key s := ... - scrollLock
-
const static Key scrollLock := ... - semicolon
-
const static Key semicolon := ... - shift
-
const static Key shift := ... - slash
-
const static Key slash := ... - space
-
const static Key space := ... - t
-
const static Key t := ... - tab
-
const static Key tab := ... - toStr
-
virtual override Str toStr()Format as key names combined with "+" symbol.
- 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 := ...