summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2018-03-15 17:55:30 +0800
committerPeng Wu <alexepico@gmail.com>2018-03-15 17:55:30 +0800
commit535dc74babeadf5e7826acd92c7aaa5c78f4647e (patch)
tree132b056e632ec9436c9cc6a12e1981817d7944e9
parent9619fac3d1fcc6f85e6bd0a6022989a0a4fe57ad (diff)
downloadibus-libpinyin-535dc74babeadf5e7826acd92c7aaa5c78f4647e.tar.gz
ibus-libpinyin-535dc74babeadf5e7826acd92c7aaa5c78f4647e.tar.xz
ibus-libpinyin-535dc74babeadf5e7826acd92c7aaa5c78f4647e.zip
fixes m_select_mode for Bopomofo Editor
-rw-r--r--src/PYPBopomofoEditor.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/PYPBopomofoEditor.cc b/src/PYPBopomofoEditor.cc
index 430b019..dd19fa7 100644
--- a/src/PYPBopomofoEditor.cc
+++ b/src/PYPBopomofoEditor.cc
@@ -90,13 +90,11 @@ BopomofoEditor::processGuideKey (guint keyval, guint keycode,
if (G_LIKELY (m_select_mode))
return FALSE;
-#if 0
if (G_UNLIKELY (keyval == IBUS_space)) {
m_select_mode = TRUE;
update ();
return TRUE;
}
-#endif
return FALSE;
}
@@ -269,6 +267,11 @@ BopomofoEditor::updateLookupTableLabel (void)
void
BopomofoEditor::updateLookupTable (void)
{
+ if (!m_select_mode) {
+ hideLookupTable ();
+ return;
+ }
+
m_lookup_table.clear ();
fillLookupTable ();