← Standard library

KeyMods

flags KeyMods extends uint8
import KeyMods from Wax;

A combinable bit set of modifier-key and lock states. None is the empty mask; Shift, Ctrl, Alt, and Meta combine left and right variants.

InputEvent.wax:107

Members

Nonecase

case None = 0

InputEvent.wax:108

Shiftcase

case Shift = 1

InputEvent.wax:109

Ctrlcase

case Ctrl = 2

InputEvent.wax:110

Altcase

case Alt = 4

InputEvent.wax:111

Metacase

case Meta = 8

InputEvent.wax:112

CapsLockcase

case CapsLock = 16

InputEvent.wax:113

NumLockcase

case NumLock = 32

InputEvent.wax:114

Addmethod

public fn Add(KeyMods flags) : KeyMods

Provided by the compiler.

CompareTomethod

public fn CompareTo(KeyMods other) : int32

Provided by the compiler.

Equalsmethod

public fn Equals(KeyMods other) : bool

Provided by the compiler.

GetHashCodemethod

public fn GetHashCode() : uint32

Provided by the compiler.

HasAllmethod

public fn HasAll(KeyMods flags) : bool

Provided by the compiler.

HasValuemethod

public fn HasValue(KeyMods flags) : bool

Provided by the compiler.

Removemethod

public fn Remove(KeyMods flags) : KeyMods

Provided by the compiler.

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.

Togglemethod

public fn Toggle(KeyMods flags) : KeyMods

Provided by the compiler.