}
} else if (message.command.compare(ISE_MESSAGE_COMMAND_STRINGS[ISE_MESSAGE_COMMAND_SET_KEYBOARD_SIZES]) == 0) {
LOGD("ISE_MESSAGE_COMMAND_SET_KEYBOARD_SIZES");
- if (message.values.size() == 4) {
- int portrait_width, portrait_height;
- int landscape_width, landscape_height;
+ int portrait_width, portrait_height;
+ int landscape_width, landscape_height;
+ if (message.values.size() == 4 || message.values.size() == 2) {
portrait_width = atoi(message.values.at(0).c_str());
portrait_height = atoi(message.values.at(1).c_str());
- landscape_width = atoi(message.values.at(2).c_str());
- landscape_height = atoi(message.values.at(3).c_str());
+ if (message.values.size() == 2) {
+ landscape_width = portrait_width;
+ landscape_height = portrait_height;
+ } else {
+ landscape_width = atoi(message.values.at(2).c_str());
+ landscape_height = atoi(message.values.at(3).c_str());
+ }
LOGD("ISE_MESSAGE_COMMAND_SET_KEYBOARD_SIZES : %d %d %d %d",
portrait_width, portrait_height, landscape_width, landscape_height);
#include <Elementary.h>
#include <dlog.h>
+#ifdef WEBSOCKET
+#include "legacy_support/websocket.h"
+extern CWebHelperAgentWebSocket g_websocket;
+#endif
+
using namespace scl;
static scim::ConfigPointer _scim_config(0);
if (ui) {
ui->process_keyboard_ui_state_change(KEYBOARD_UI_STATE_DID_SHOW);
}
+
+#ifdef WEBSOCKET
+ g_websocket.on_show(ic);
+#endif
}
}
}
if (ui) {
ui->process_keyboard_ui_state_change(KEYBOARD_UI_STATE_DID_HIDE);
}
+
+#ifdef WEBSOCKET
+ g_websocket.on_hide(ic);
+#endif
}
}
}