commit 2676b09888c936ae545bfe9fd87d8a6d6b741920 Author: Peng Wu Date: Tue Mar 24 15:50:43 2020 +0800 text-input: Support ibus update_preedit_string_with_mode feature ibus supports ibus_engine_update_preedit_text_with_mode function, update the text input protocol to support the above API now. diff --git a/unstable/text-input/text-input-unstable-v3.xml b/unstable/text-input/text-input-unstable-v3.xml index 8b710fd..44786bf 100644 --- a/unstable/text-input/text-input-unstable-v3.xml +++ b/unstable/text-input/text-input-unstable-v3.xml @@ -303,6 +303,12 @@ + + + Reset the input method state. + + + Notification that this seat's text-input focus is on a certain surface. @@ -417,6 +423,44 @@ + + + + Pre-edit commit mode when the focus is lost. + + + + + + + + Notify when a new composing text (pre-edit) should be set at the + current cursor position. Any previously set composing text must be + removed. Any previously existing selected text must be removed. + + The argument text contains the pre-edit string buffer. + + The parameters cursor_begin and cursor_end are counted in bytes + relative to the beginning of the submitted text buffer. Cursor should + be hidden when both are equal to -1. + + The parameter mode is the commit mode to specify the behavior + on focus out when the pre-edit buffer is visible. + + They could be represented by the client as a line if both values are + the same, or as a text highlight otherwise. + + Values set with this event are double-buffered. They must be applied + and reset to initial on the next zwp_text_input_v3.done event. + + The initial value of text is an empty string, and cursor_begin, + cursor_end and cursor_hidden are all 0. + + + + + +