fixes space handle
authorPeng Wu <alexepico@gmail.com>
Mon, 10 Oct 2011 09:30:39 +0000 (17:30 +0800)
committerPeng Wu <alexepico@gmail.com>
Thu, 22 Dec 2011 04:23:14 +0000 (12:23 +0800)
src/PYPPhoneticEditor.cc
src/PYPPinyinEditor.cc

index c50b265..dc494d5 100644 (file)
@@ -43,11 +43,8 @@ LibPinyinPhoneticEditor::processSpace (guint keyval, guint keycode,
         return FALSE;
     if (cmshm_filter (modifiers) != 0)
         return TRUE;
-    if (m_lookup_table.size () != 0) {
-        selectCandidate (m_lookup_table.cursorPos ());
-    } else {
-        commit ();
-    }
+
+    commit ();
     return TRUE;
 }
 
index 4b8aa21..195d0e3 100644 (file)
@@ -121,6 +121,7 @@ LibPinyinPinyinEditor::processPunct (guint keyval, guint keycode,
         break;
     }
 
+#if 0
     if (m_config.autoCommit ()) {
         if (m_lookup_table.size ()) {
             /* TODO: check here. */
@@ -129,6 +130,7 @@ LibPinyinPinyinEditor::processPunct (guint keyval, guint keycode,
         commit ();
         return FALSE;
     }
+#endif
 
     return TRUE;
 }