set_client_commit_preedit


Description:

public void set_client_commit_preedit (bool client_commit)

Set whether InputContext commits pre-edit texts or not.

If true, 'update-preedit-text-with-mode' signal is emitted instead of 'update-preedit-text' signal. If your client receives the 'update-preedit-text-with-mode' signal, the client needs to implement commit_text of pre-edit text when GtkIMContextClass.focus_out() is called in case an IME desires that behavior but it depends on each IME.

See also update_preedit_text_with_mode.

Parameters:

this

An InputContext.

client_commit

true if your input context commits pre-edit texts with Space or Enter key events or mouse click events. false if ibus-daemon commits pre-edit texts with those events. The default is false. The behavior is decided with update_preedit_text_with_mode to commit, clear or keep the pre-edit text and this API is important in ibus-hangul.