onKey

abstract fun onKey(primaryCode: Int, keyCodes: Array<Int>)

Send a key press to the listener.

Parameters

primaryCode

this is the key that was pressed

keyCodes

the codes for all the possible alternative keys with the primary code being the first. If the primary key code is a single character such as an alphabet or number or symbol, the alternatives will include other characters that may be on the same key or adjacent keys. These codes are useful to correct for accidental presses of a key adjacent to the intended key.