Add keycode in the filter_key event 63/200463/4
authorInhong Han <inhong1.han@samsung.com>
Mon, 25 Feb 2019 09:48:03 +0000 (18:48 +0900)
committerInHong Han <inhong1.han@samsung.com>
Mon, 11 Mar 2019 10:06:09 +0000 (10:06 +0000)
Change-Id: I343595d6b36a77f442a657b178cded7a292de577

src/sclconnection-isf.cpp
src/sclcorecallback.h

index ca1a86c..dedfb03 100644 (file)
@@ -593,12 +593,12 @@ static void slot_check_ise_option_window(const scim::HelperAgent *agent, sclu32
     }
 }
 
-static void slot_process_key_event(const scim::HelperAgent *agent, scim::KeyEvent &key, scim::uint32 &ret) {
+static void slot_process_key_event(const scim::HelperAgent *agent, scim::KeyEvent &key, scim::uint32 &ret, scim::uint32 keycode) {
     CSCLCoreImpl *impl = CSCLCoreImpl::get_instance();
     if (impl) {
         ISCLCoreEventCallback *callback = impl->get_core_event_callback();
         if (callback) {
-            callback->on_process_key_event(key, &ret);
+            callback->on_process_key_event(key, &ret, keycode);
 #ifdef WEBSOCKETweb_ret
             g_websocket.on_process_key_event(key.code, key.mask, key.layout, &ret);
 #endif
@@ -1244,7 +1244,7 @@ void CSCLConnectionISF::send_private_command(const sclchar *command)
             callback->on_associate_table_page_up(0, NULL);
             callback->on_associate_table_page_down(0, NULL);
             callback->on_update_associate_table_page_size(0, NULL, 0);
-            callback->on_process_key_event(key, NULL);
+            callback->on_process_key_event(key, NULL, 0);
 
             callback->on_set_display_language(NULL);
             callback->on_set_rotation_degree(0);
index c34e83e..f4f0516 100644 (file)
@@ -73,7 +73,7 @@ struct ISCLCoreEventCallback {
     virtual void on_associate_table_page_up(sclint ic, const sclchar *uuid) {}
     virtual void on_associate_table_page_down(sclint ic, const sclchar *uuid) {}
     virtual void on_update_associate_table_page_size(sclint ic, const sclchar *uuid, sclint page_size) {}
-    virtual void on_process_key_event(scim::KeyEvent &key, sclu32 *ret) {}
+    virtual void on_process_key_event(scim::KeyEvent &key, sclu32 *ret, sclu32 keycode) {}
 
     virtual void on_set_display_language(const sclchar *language) {}
     virtual void on_set_rotation_degree(sclint degree) {}