getAwtKey

fun getAwtKey(index: Int): Int

Gets the java.awt.event.KeyEvent key code at the provided index.

Return

java.awt.event.KeyEvent key code, or -1 if the key isn't valid.

Parameters

index

the index of the key code to obtain.

Throws

if the index is below 0, or >= length.