Flush in case of S/W keyboard needed 60/92760/3
authorLi Zhang <li2012.zhang@samsung.com>
Tue, 18 Oct 2016 11:43:48 +0000 (19:43 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Tue, 18 Oct 2016 12:32:39 +0000 (20:32 +0800)
Change-Id: I5045cc579b6f73aede815562e6dbe51855446542
Signed-off-by: Li Zhang <li2012.zhang@samsung.com>
src/scim_hangul_imengine.cpp
src/scim_hangul_imengine.h

index b46110e..5aaec4b 100644 (file)
@@ -82,6 +82,8 @@
 #define SCIM_HANGUL_ICON_ON      SCIM_ICONDIR "/scim-hangul-on.png"
 #define SCIM_HANGUL_ICON_OFF     SCIM_ICONDIR "/scim-hangul-off.png"
 
+#define ISE_DEFAULT_FLUSH_EVENT_CMD 1001
+
 static ConfigPointer _scim_config (0);
 
 static Property hangul_mode(SCIM_PROP_HANGUL_MODE, "");
@@ -707,6 +709,23 @@ HangulInstance::trigger_property (const String &property)
     }
 }
 
+void
+HangulInstance::process_helper_event (const String &helper_uuid,
+                                      const Transaction &recv)
+{
+    TransactionReader reader (recv);
+    int cmd;
+
+    if (!reader.get_command (cmd))
+        return;
+
+    switch (cmd) {
+    case ISE_DEFAULT_FLUSH_EVENT_CMD:
+        flush ();
+        break;
+    }
+}
+
 String
 HangulInstance::get_candidate_string()
 {
index 3921cd0..19965c0 100644 (file)
@@ -124,6 +124,7 @@ public:
     virtual void focus_in ();
     virtual void focus_out ();
     virtual void trigger_property (const String &property);
+    virtual void process_helper_event (const String &helper_uuid, const Transaction &trans);
 
 private:
     bool is_backspace_key (const KeyEvent &key) const {