Companion

object Companion

Functions

Link copied to clipboard
fun findByCode(code: Long): Key?

Finds a Key with the given code.

Link copied to clipboard
fun findByName(name: String): Key

Returns the corresponding key code needed to type this character

Link copied to clipboard
fun fromAwtKeyEvent(event: Int): Key

Gets the corresponding Key from the type of java.awt.event.KeyEvent given.

Link copied to clipboard

Checks if a given character needs shift to be pressed to be typed