Microsoft SDK for Java

handledKey

This method of the InputMethodListener Interface is called by the InputManagerListener. The InputManagerListener passes the keystroke to the InputMethodListener object by calling this method.

Syntax

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.

Return Value

Returns true if InputMethodListener processes the keystroke; otherwise, returns false.

Parameters

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.