if (cur_context == NULL) {
return FALSE;
}
- if (key_index != highlighted_key || window != highlighted_window) {
- SECURE_LOGD("%d != %d || %p != %p", key_index, highlighted_key, window, highlighted_window);
- if (layout) {
- if (coordinate->key_type != KEY_TYPE_NONE) {
- if (context->get_tts_enabled()) {
- const sclchar *targetstr = coordinate->hint_string[shift_index][button_context->multitap_index];
- if (targetstr == NULL) {
- targetstr = coordinate->label[shift_index][0];
- }
- if (targetstr == NULL) {
- targetstr = coordinate->key_value[shift_index][button_context->multitap_index];
- }
- /*if(state->get_cur_action_state() == ACTION_STATE_BASE_LONGKEY ||
- state->get_cur_action_state() == ACTION_STATE_POPUP_LONGKEY ) {
- targetstr = coordinate->long_key_value;
- }*/
- const sclchar *sayit = cache->find_substituted_string(targetstr);
- utils->play_tts(sayit);
+
+ SECURE_LOGD("key_index(%d), highlighted_key(%d), window(%p), highlighted_window(%p)", key_index, highlighted_key, window, highlighted_window);
+ if (layout) {
+ if (coordinate->key_type != KEY_TYPE_NONE) {
+ if (context->get_tts_enabled()) {
+ const sclchar *targetstr = coordinate->hint_string[shift_index][button_context->multitap_index];
+ if (targetstr == NULL) {
+ targetstr = coordinate->label[shift_index][0];
}
+ if (targetstr == NULL) {
+ targetstr = coordinate->key_value[shift_index][button_context->multitap_index];
+ }
+ /*if(state->get_cur_action_state() == ACTION_STATE_BASE_LONGKEY ||
+ state->get_cur_action_state() == ACTION_STATE_POPUP_LONGKEY ) {
+ targetstr = coordinate->long_key_value;
+ }*/
+ const sclchar *sayit = cache->find_substituted_string(targetstr);
+ utils->play_tts(sayit);
}
}
-
- context->set_cur_highlighted_window(window);
- context->set_cur_highlighted_key(key_index);
}
+
+ context->set_cur_highlighted_window(window);
+ context->set_cur_highlighted_key(key_index);
}
}