mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-20 07:00:08 +01:00
Merge branch 'preedit-commit-mode' into 'main'
text-input: Add preedit_commit_mode event for mouse click event See merge request wayland/wayland-protocols!71
This commit is contained in:
commit
511b2b236b
1 changed files with 28 additions and 2 deletions
|
|
@ -47,7 +47,7 @@
|
||||||
interface version number is reset.
|
interface version number is reset.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<interface name="zwp_text_input_v3" version="1">
|
<interface name="zwp_text_input_v3" version="2">
|
||||||
<description summary="text input">
|
<description summary="text input">
|
||||||
The zwp_text_input_v3 interface represents text input and input methods
|
The zwp_text_input_v3 interface represents text input and input methods
|
||||||
associated with a seat. It provides enter/leave events to follow the
|
associated with a seat. It provides enter/leave events to follow the
|
||||||
|
|
@ -432,9 +432,35 @@
|
||||||
</description>
|
</description>
|
||||||
<arg name="serial" type="uint"/>
|
<arg name="serial" type="uint"/>
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
|
<enum name="commit_mode">
|
||||||
|
<description summary="focus commit mode">
|
||||||
|
Pre-edit commit mode when the focus widget or the cursor position
|
||||||
|
is changed.
|
||||||
|
</description>
|
||||||
|
<entry name="clear" value="0" summary="pre-edit text is cleared."/>
|
||||||
|
<entry name="commit" value="1" summary="pre-edit text is committed."/>
|
||||||
|
</enum>
|
||||||
|
|
||||||
|
<event name="preedit_commit_mode" since="2">
|
||||||
|
<description summary="pre-edit commit mode">
|
||||||
|
Specify how the visible preedit should be handled
|
||||||
|
when switching the focus widget or changing the cursor position,
|
||||||
|
whether to commit the preedit text or clear the preedit text.
|
||||||
|
|
||||||
|
This is usually used together with the preedit_string event.
|
||||||
|
|
||||||
|
The commit behavior is the same for focus switch and
|
||||||
|
cursor position change.
|
||||||
|
|
||||||
|
The parameter mode selects the desired behavior and
|
||||||
|
its value is one from the commit mode enum.
|
||||||
|
</description>
|
||||||
|
<arg name="mode" type="uint" enum="commit_mode"/>
|
||||||
|
</event>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
<interface name="zwp_text_input_manager_v3" version="1">
|
<interface name="zwp_text_input_manager_v3" version="2">
|
||||||
<description summary="text input manager">
|
<description summary="text input manager">
|
||||||
A factory for text-input objects. This object is a global singleton.
|
A factory for text-input objects. This object is a global singleton.
|
||||||
</description>
|
</description>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue