From: Inhong Han Date: Mon, 25 Feb 2019 09:48:03 +0000 (+0900) Subject: Add keycode in the filter_key event X-Git-Tag: submit/tizen/20190312.014935~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c8afd5efc4da951d7e9c0bb09a12f5b90c6658f;p=platform%2Fcore%2Fuifw%2Flibscl-core.git Add keycode in the filter_key event Change-Id: I343595d6b36a77f442a657b178cded7a292de577 --- diff --git a/src/sclconnection-isf.cpp b/src/sclconnection-isf.cpp index ca1a86c..dedfb03 100644 --- a/src/sclconnection-isf.cpp +++ b/src/sclconnection-isf.cpp @@ -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); diff --git a/src/sclcorecallback.h b/src/sclcorecallback.h index c34e83e..f4f0516 100644 --- a/src/sclcorecallback.h +++ b/src/sclcorecallback.h @@ -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) {}