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