Call func when there is a click on this view.
Call the given func on a keydown event (KeyEvent.ACTION_DOWN)
with the given keycode, and the given set of meta-modifiers.
Call the given func on a keydown event (KeyEvent.ACTION_DOWN)
with the given keycode, and the given set of meta-modifiers.
Useful to declare special handling for, e.g., KeyEvent.KEYCODE_ENTER.
Call the given func when this view has keyboard focus, and any
key is hit.
Call the given func when this view has keyboard focus, and any
key is hit. Arguments to func are the integer key code, and the
key event. The func should return true if it handled the event,
false otherwise.
Handlers declared for specific keycodes with onKey( code ){ ... }
take precedence, and will always override the generic handler here.
Mixin trait for view subclasses which provides "JQuery-style" event listener declarations. Fortunately, these don't conflict with the native API because they're alternate overloadings.
NB the Scaladoc here is more readable if inherited methods are omitted.