Blame SOURCES/0005-Preedit-needs-to-be-updated-on-page-up-and-page-down.patch

abcd9f
From 3b7a3530c42766b801cded26b3bc269222c3fb0a Mon Sep 17 00:00:00 2001
abcd9f
From: Mike FABIAN <mfabian@redhat.com>
abcd9f
Date: Thu, 14 Feb 2013 18:21:57 +0100
abcd9f
Subject: [PATCH 5/5] Preedit needs to be updated on page-up and page-down
abcd9f
abcd9f
When paging through the lookup table, the preedit needs to be updated
abcd9f
to show the phrase selected by the cursor in the lookup table. Before
abcd9f
this patch, the preedit was not updated and when commiting the
abcd9f
character selected in the lookup table suddenly replaced the character
abcd9f
in the preedit. This differed from the behaviour when moving through
abcd9f
the lookup table with the arrow-up and arrow-down keys.
abcd9f
Using page-up and page-down or the arrow icons at the bottom
abcd9f
of the lookup table should also update the preedit just like it
abcd9f
is done when the arrow-up and arrow-down keys are used.
abcd9f
---
abcd9f
 engine/table.py | 10 +++++-----
abcd9f
 1 file changed, 5 insertions(+), 5 deletions(-)
abcd9f
abcd9f
diff --git a/engine/table.py b/engine/table.py
abcd9f
index 3999c35..58a8d4d 100644
abcd9f
--- a/engine/table.py
abcd9f
+++ b/engine/table.py
abcd9f
@@ -1751,7 +1751,7 @@ class tabengine (IBus.Engine):
abcd9f
             #  on lookup page
abcd9f
             if IBus.KEY_space in self._page_down_keys:
abcd9f
                 res = self._editor.page_down()
abcd9f
-                self._update_lookup_table ()
abcd9f
+                self._update_ui ()
abcd9f
                 return res
abcd9f
             else:
abcd9f
                 o_py = self._editor._py_mode
abcd9f
@@ -1826,13 +1826,13 @@ class tabengine (IBus.Engine):
abcd9f
         elif key.code in self._page_down_keys \
abcd9f
                 and self._editor._candidates[0]:
abcd9f
             res = self._editor.page_down()
abcd9f
-            self._update_lookup_table ()
abcd9f
+            self._update_ui ()
abcd9f
             return res
abcd9f
 
abcd9f
         elif key.code in self._page_up_keys \
abcd9f
                 and self._editor._candidates[0]:
abcd9f
             res = self._editor.page_up ()
abcd9f
-            self._update_lookup_table ()
abcd9f
+            self._update_ui ()
abcd9f
             return res
abcd9f
 
abcd9f
         elif keychar in self._editor.get_select_keys() and self._editor._candidates[0]:
abcd9f
@@ -1909,13 +1909,13 @@ class tabengine (IBus.Engine):
abcd9f
 
abcd9f
     def do_page_up (self):
abcd9f
         if self._editor.page_up ():
abcd9f
-            self._update_lookup_table ()
abcd9f
+            self._update_ui ()
abcd9f
             return True
abcd9f
         return False
abcd9f
 
abcd9f
     def do_page_down (self):
abcd9f
         if self._editor.page_down ():
abcd9f
-            self._update_lookup_table ()
abcd9f
+            self._update_ui ()
abcd9f
             return True
abcd9f
         return False
abcd9f
 
abcd9f
-- 
abcd9f
1.7.11.7
abcd9f