onKeyPressed

var onKeyPressed: (KeyEvent) -> Unit? = null

Gets invoked with a KeyEvent whenever a key is pressed while this ComponentView has focus.

See also