This method of the InputMethodListener Interface is called by the InputManagerListener. The InputManagerListener passes the keystroke to the InputMethodListener object by calling this method.
public boolean handledKey(InputMethodCallback imeCallback, long when, int keyCode, int keyChar, int state);
If the InputMethodListener object accepts the keystroke, it returns true and the keystroke never returns to the internal input queue. If the return value is false, this keystroke is returned to the internal input queue.
Returns true if InputMethodListener processes the keystroke; otherwise, returns false.
imeCallback | The InputMethodCallback object that receives keystrokes from the native system. |
when | The time that the composed character is generated. |
keyCode | The ASCII key code of the character. |
keyChar | The key character of the composed character. |
state | The state when the event occurred. |