@@ -144,7 +144,7 @@ void TextInputChannel::InputPanelStateChangedCallback(
144144 void * data,
145145 Ecore_IMF_Context* context,
146146 int value) {
147- FT_LOGD (" Change input panel state[%d]" , value);
147+ FT_LOGI (" Change input panel state[%d]" , value);
148148 if (!data) {
149149 FT_LOGW (" No Data" );
150150 return ;
@@ -178,7 +178,7 @@ void TextInputChannel::InputPanelGeometryChangedCallback(
178178 &self->current_keyboard_geometry_ .y , &self->current_keyboard_geometry_ .w ,
179179 &self->current_keyboard_geometry_ .h );
180180
181- FT_LOGD (
181+ FT_LOGI (
182182 " Current keyboard geometry x:[%d] y:[%d] w:[%d] h:[%d]" ,
183183 self->current_keyboard_geometry_ .x , self->current_keyboard_geometry_ .y ,
184184 self->current_keyboard_geometry_ .w , self->current_keyboard_geometry_ .h );
@@ -289,7 +289,7 @@ void TextInputChannel::HandleMethodCall(
289289 std::unique_ptr<flutter::MethodResult<rapidjson::Document>> result) {
290290 const std::string& method = method_call.method_name ();
291291
292- FT_LOGD ( " Method : %s" , method.data ());
292+ FT_LOGI ( " Handle Method : %s" , method.data ());
293293
294294 if (method.compare (kShowMethod ) == 0 ) {
295295 ShowSoftwareKeyboard ();
@@ -395,7 +395,7 @@ void TextInputChannel::SendStateUpdate(const flutter::TextInputModel& model) {
395395 kTextKey , rapidjson::Value (model.GetText (), allocator).Move (), allocator);
396396 args->PushBack (editing_state, allocator);
397397
398- FT_LOGD (" Send text[%s]" , model.GetText ().data ());
398+ FT_LOGI (" Send text[%s]" , model.GetText ().data ());
399399 channel_->InvokeMethod (kUpdateEditingStateMethod , std::move (args));
400400}
401401
@@ -427,7 +427,7 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
427427 if (engine_->device_profile == DeviceProfile::kWearable ) {
428428 // FIXME: for wearable
429429 in_select_mode_ = true ;
430- FT_LOGD (" Set select mode[true]" );
430+ FT_LOGI (" Set select mode[true]" );
431431 }
432432 }
433433
@@ -447,7 +447,7 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
447447 // of the input panel is shifted to left!
448448 // What we want is to move only the cursor on the text editor.
449449 ResetCurrentContext ();
450- FT_LOGD (" Force redirect IME key-event[%s] to fallback" ,
450+ FT_LOGW (" Force redirect IME key-event[%s] to fallback" ,
451451 keyDownEvent->keyname );
452452 return false ;
453453 }
@@ -461,27 +461,27 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
461461 last_handled_ecore_event_keyname_ = keyDownEvent->keyname ;
462462 }
463463
464- FT_LOGD (" The %skey-event[%s] are%s filtered" , isIME ? " IME " : " " ,
464+ FT_LOGI (" The %skey-event[%s] are%s filtered" , isIME ? " IME " : " " ,
465465 keyDownEvent->keyname , handled ? " " : " not" );
466466
467467 if (!handled && !strcmp (keyDownEvent->key , " Return" ) && in_select_mode_ &&
468468 engine_->device_profile == DeviceProfile::kWearable ) {
469469 in_select_mode_ = false ;
470470 handled = true ;
471- FT_LOGD (" Set select mode[false]" );
471+ FT_LOGI (" Set select mode[false]" );
472472 }
473473
474474 return handled;
475475}
476476
477477void TextInputChannel::NonIMFFallback (Ecore_Event_Key* keyDownEvent) {
478- FT_LOGD (" NonIMFFallback key name [%s]" , keyDownEvent->keyname );
478+ FT_LOGI (" NonIMFFallback key name [%s]" , keyDownEvent->keyname );
479479
480480 // For mobile, fix me!
481481 if (engine_->device_profile == DeviceProfile::kMobile &&
482482 edit_status_ == EditStatus::kPreeditEnd ) {
483483 SetEditStatus (EditStatus::kNone );
484- FT_LOGD (" Ignore key-event[%s]!" , keyDownEvent->keyname );
484+ FT_LOGW (" Ignore key-event[%s]!" , keyDownEvent->keyname );
485485 return ;
486486 }
487487
@@ -548,20 +548,19 @@ void TextInputChannel::EnterPressed(flutter::TextInputModel* model,
548548}
549549
550550void TextInputChannel::OnCommit (std::string str) {
551- FT_LOGD (" OnCommit str[%s]" , str.data ());
551+ FT_LOGI (" OnCommit str[%s]" , str.data ());
552552 SetEditStatus (EditStatus::kCommit );
553553
554554 ConsumeLastPreedit ();
555555
556556 active_model_->AddText (str);
557- FT_LOGD (" Add Text[%s]" , str.data ());
558557
559558 SendStateUpdate (*active_model_);
560559 SetEditStatus (EditStatus::kNone );
561560}
562561
563562void TextInputChannel::OnPreedit (std::string str, int cursor_pos) {
564- FT_LOGD (" OnPreedit str[%s], cursor_pos[%d]" , str.data (), cursor_pos);
563+ FT_LOGI (" OnPreedit str[%s], cursor_pos[%d]" , str.data (), cursor_pos);
565564 SetEditStatus (EditStatus::kPreeditStart );
566565 if (str.compare (" " ) == 0 ) {
567566 SetEditStatus (EditStatus::kPreeditEnd );
@@ -571,8 +570,6 @@ void TextInputChannel::OnPreedit(std::string str, int cursor_pos) {
571570 (edit_status_ == EditStatus::kPreeditEnd &&
572571 // For tv, fix me
573572 last_handled_ecore_event_keyname_.compare (" Return" ) != 0 )) {
574- FT_LOGD (" last_handled_ecore_event_keyname_[%s]" ,
575- last_handled_ecore_event_keyname_.data ());
576573 last_handled_ecore_event_keyname_ = " " ;
577574 ConsumeLastPreedit ();
578575 }
@@ -584,13 +581,13 @@ void TextInputChannel::OnPreedit(std::string str, int cursor_pos) {
584581 preedit_end_pos_ = active_model_->selection ().base ();
585582 have_preedit_ = true ;
586583 SendStateUpdate (*active_model_);
587- FT_LOGD (" preedit start pos[%d], preedit end pos[%d]" , preedit_start_pos_,
584+ FT_LOGI (" preedit start pos[%d], preedit end pos[%d]" , preedit_start_pos_,
588585 preedit_end_pos_);
589586 }
590587}
591588void TextInputChannel::OnPreeditForPlatformView (std::string str,
592589 int cursor_pos) {
593- FT_LOGD (" OnPreeditForPlatformView str[%s], cursor_pos[%d]" , str.data (),
590+ FT_LOGI (" OnPreeditForPlatformView str[%s], cursor_pos[%d]" , str.data (),
594591 cursor_pos);
595592
596593 SetEditStatus (EditStatus::kPreeditStart );
@@ -602,8 +599,6 @@ void TextInputChannel::OnPreeditForPlatformView(std::string str,
602599 (edit_status_ == EditStatus::kPreeditEnd &&
603600 // For tv, fix me
604601 last_handled_ecore_event_keyname_.compare (" Return" ) != 0 )) {
605- FT_LOGD (" last_handled_ecore_event_keyname_[%s]" ,
606- last_handled_ecore_event_keyname_.data ());
607602 last_handled_ecore_event_keyname_ = " " ;
608603 }
609604
@@ -614,7 +609,6 @@ void TextInputChannel::OnPreeditForPlatformView(std::string str,
614609}
615610
616611void TextInputChannel::ShowSoftwareKeyboard () {
617- FT_LOGD (" Show input panel" );
618612 if (imf_context_ && !is_software_keyboard_showing_) {
619613 is_software_keyboard_showing_ = true ;
620614 Ecore_IMF_Input_Panel_Layout panel_layout;
@@ -627,7 +621,6 @@ void TextInputChannel::ShowSoftwareKeyboard() {
627621}
628622
629623void TextInputChannel::HideSoftwareKeyboard () {
630- FT_LOGD (" Hide input panel" );
631624 if (imf_context_ && is_software_keyboard_showing_) {
632625 is_software_keyboard_showing_ = false ;
633626 ResetCurrentContext ();
@@ -636,7 +629,6 @@ void TextInputChannel::HideSoftwareKeyboard() {
636629}
637630
638631void TextInputChannel::SetEditStatus (EditStatus edit_status) {
639- FT_LOGD (" Set edit status[%d]" , edit_status);
640632 edit_status_ = edit_status;
641633}
642634
@@ -699,7 +691,7 @@ void TextInputChannel::ConsumeLastPreedit() {
699691 int count = preedit_end_pos_ - preedit_start_pos_;
700692 active_model_->DeleteSurrounding (-count, count);
701693 std::string after = active_model_->GetText ();
702- FT_LOGD (" Consume last preedit count:[%d] text:[%s] -> [%s]" , count,
694+ FT_LOGI (" Consume last preedit count:[%d] text:[%s] -> [%s]" , count,
703695 before.data (), after.data ());
704696 SendStateUpdate (*active_model_);
705697 }
0 commit comments