summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorJan Arne Petersen <jpetersen@openismus.com>2012-09-09 23:08:44 +0200
committerKristian Høgsberg <krh@bitplanet.net>2012-09-12 16:51:08 -0400
commite202bae9d3736341dc2d0c832797aaf45e1ef0b0 (patch)
treeb31cd3c5f11009449a7ca51a1b4ef894fdd139cb /protocol
parent43f4aa8cab93ae32e427ab8426261950d83f2755 (diff)
text: Add delete_surrounding_text to protocol
Add delete_surrounding_text event in the text_model interface and the request in the input_method_context interface. Implement it in the example editor client and in the example keyboard so that the backspace key works with it. Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
Diffstat (limited to 'protocol')
-rw-r--r--protocol/input-method.xml4
-rw-r--r--protocol/text.xml4
2 files changed, 8 insertions, 0 deletions
diff --git a/protocol/input-method.xml b/protocol/input-method.xml
index 9baff624..10ca32ab 100644
--- a/protocol/input-method.xml
+++ b/protocol/input-method.xml
@@ -49,6 +49,10 @@
<arg name="text" type="string"/>
<arg name="index" type="uint"/>
</request>
+ <request name="delete_surrounding_text">
+ <arg name="index" type="int"/>
+ <arg name="length" type="uint"/>
+ </request>
<event name="surrounding_text">
<description summary="surrounding text event">
The plain surrounding text around the input position. Cursor is the
diff --git a/protocol/text.xml b/protocol/text.xml
index b280a28f..3d7d8f5d 100644
--- a/protocol/text.xml
+++ b/protocol/text.xml
@@ -84,6 +84,10 @@
<arg name="text" type="string"/>
<arg name="index" type="uint"/>
</event>
+ <event name="delete_surrounding_text">
+ <arg name="index" type="int"/>
+ <arg name="length" type="uint"/>
+ </event>
<event name="preedit_styling"/>
<event name="key"/>
<event name="selection_replacement"/>