m_mouse_move_handler = ecore_event_handler_add(ECORE_EVENT_MOUSE_MOVE, mouse_move, NULL);
m_mouse_up_handler = ecore_event_handler_add(ECORE_EVENT_MOUSE_BUTTON_UP, mouse_release, NULL);
- m_xclient_msg_handler = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, client_message_cb, NULL);
+ //m_xclient_msg_handler = ecore_event_handler_add(ECORE_X_EVENT_CLIENT_MESSAGE, client_message_cb, NULL);
}
/**
if (uiimpl && context) {
sclboolean turn_shift_off = TRUE;
- if (ui_event_desc.key_type == KEY_TYPE_CONTROL) {
- if (ui_event_desc.key_event == MVK_Shift_L || ui_event_desc.key_event == MVK_Caps_Lock) {
- turn_shift_off = FALSE;
- }
- if (ui_event_desc.key_type == KEY_TYPE_MODECHANGE) {
- turn_shift_off = FALSE;
- }
- if (uiimpl->get_caps_mode()) {
- turn_shift_off = FALSE;
+ if (uiimpl->get_caps_mode()) {
+ turn_shift_off = FALSE;
+ } else {
+ if (ui_event_desc.key_type == KEY_TYPE_CONTROL) {
+ if (ui_event_desc.key_event == MVK_Shift_L || ui_event_desc.key_event == MVK_Caps_Lock) {
+ turn_shift_off = FALSE;
+ }
+ if (ui_event_desc.key_type == KEY_TYPE_MODECHANGE) {
+ turn_shift_off = FALSE;
+ }
}
}
/* If we are in ON_PRESSED or ON_KEY_ENTERED mode of shift multi touch state, do not turn it off now */
CSCLUtils *utils = CSCLUtils::get_instance();
CSCLContext *context = CSCLContext::get_instance();
CSCLWindows *windows = CSCLWindows::get_instance();
+
+ /*inform the client that the shift state changed */
+ CSCLEventHandler *handler = CSCLEventHandler::get_instance();
+ if (handler) {
+ SCLEventReturnType ret = handler->on_event_notification(SCL_UINOTITYPE_SHIFT_STATE_CHANGE, state);
+ if (ret == SCL_EVENT_DONE) {
+ return;
+ }
+ }
+
if (context && windows && utils) {
SCLShiftState current_state = context->get_shift_state();
context->set_shift_state(state);
LOGD("FEEDBACK INITIALIZATION SUCCESSFUL : %d\n", r);
}
- r = tts_create(&tts);
+ /*r = tts_create(&tts);
if (TTS_ERROR_NONE != r) {
printf("tts_create FAILED : result(%d)", r);
} else {
}
if (TTS_ERROR_NONE != r) {
LOGD("tts_prepare FAILED : ret(%d)\n", r);
- }
+ }*/
return TRUE;
}
} else {
LOGD("FEEDBACK DEINITIALIZATION SUCCESSFUL : %d\n", r);
}
+ /*
r = tts_unprepare(tts);
if (TTS_ERROR_NONE != r) {
printf("tts_unprepare FAILED : result(%d)", r);
r = tts_destroy(tts);
if (TTS_ERROR_NONE != r) {
printf("tts_destroy FAILED : result(%d)", r);
- }
+ }*/
return TRUE;
}