Called via webkit.input_method_context.InputMethodContext.filterKeyEvent on every key press or release event. Every non-trivial input method needs to override this in order to implement the mapping from key events to text. A return value of true indicates to the caller that the event was consumed by the input method. In that case, the #WebKitInputMethodContext::committed signal should be emitted upon completion of a key sequence to pass the resulting text back to the editable element. Alternatively, false may be returned to indicate that the event wasn’t handled by the input method.
Called via webkit.input_method_context.InputMethodContext.getPreedit to retrieve the text currently being preedited for display at the cursor position. Any input method which composes complex characters or any other compositions from multiple sequential key presses should override this method to provide feedback.
Called via webkit.input_method_context.InputMethodContext.notifyCursorArea to inform the input method of the current cursor location relative to the client window.
Called via webkit.input_method_context.InputMethodContext.notifyFocusIn when an editable element of the #WebKitWebView has gained focus.
Called via webkit.input_method_context.InputMethodContext.notifyFocusOut when an editable element of the #WebKitWebView has lost focus.
Called via webkit.input_method_context.InputMethodContext.notifySurrounding to update the context surrounding the cursor. The provided text should not include the preedit string.
Called via webkit.input_method_context.InputMethodContext.reset to signal a change that requires a reset. An input method that implements preediting should override this method to clear the preedit state on reset.
Called via webkit.input_method_context.InputMethodContext.setEnablePreedit to control the use of the preedit string.