@@ -144,7 +144,7 @@ void TextInputChannel::InputPanelStateChangedCallback(
144
144
void * data,
145
145
Ecore_IMF_Context* context,
146
146
int value) {
147
- FT_LOGD (" Change input panel state[%d]" , value);
147
+ FT_LOGI (" Change input panel state[%d]" , value);
148
148
if (!data) {
149
149
FT_LOGW (" No Data" );
150
150
return ;
@@ -178,7 +178,7 @@ void TextInputChannel::InputPanelGeometryChangedCallback(
178
178
&self->current_keyboard_geometry_ .y , &self->current_keyboard_geometry_ .w ,
179
179
&self->current_keyboard_geometry_ .h );
180
180
181
- FT_LOGD (
181
+ FT_LOGI (
182
182
" Current keyboard geometry x:[%d] y:[%d] w:[%d] h:[%d]" ,
183
183
self->current_keyboard_geometry_ .x , self->current_keyboard_geometry_ .y ,
184
184
self->current_keyboard_geometry_ .w , self->current_keyboard_geometry_ .h );
@@ -289,7 +289,7 @@ void TextInputChannel::HandleMethodCall(
289
289
std::unique_ptr<flutter::MethodResult<rapidjson::Document>> result) {
290
290
const std::string& method = method_call.method_name ();
291
291
292
- FT_LOGD ( " Method : %s" , method.data ());
292
+ FT_LOGI ( " Handle Method : %s" , method.data ());
293
293
294
294
if (method.compare (kShowMethod ) == 0 ) {
295
295
ShowSoftwareKeyboard ();
@@ -395,7 +395,7 @@ void TextInputChannel::SendStateUpdate(const flutter::TextInputModel& model) {
395
395
kTextKey , rapidjson::Value (model.GetText (), allocator).Move (), allocator);
396
396
args->PushBack (editing_state, allocator);
397
397
398
- FT_LOGD (" Send text[%s]" , model.GetText ().data ());
398
+ FT_LOGI (" Send text[%s]" , model.GetText ().data ());
399
399
channel_->InvokeMethod (kUpdateEditingStateMethod , std::move (args));
400
400
}
401
401
@@ -427,7 +427,7 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
427
427
if (engine_->device_profile == DeviceProfile::kWearable ) {
428
428
// FIXME: for wearable
429
429
in_select_mode_ = true ;
430
- FT_LOGD (" Set select mode[true]" );
430
+ FT_LOGI (" Set select mode[true]" );
431
431
}
432
432
}
433
433
@@ -447,7 +447,7 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
447
447
// of the input panel is shifted to left!
448
448
// What we want is to move only the cursor on the text editor.
449
449
ResetCurrentContext ();
450
- FT_LOGD (" Force redirect IME key-event[%s] to fallback" ,
450
+ FT_LOGW (" Force redirect IME key-event[%s] to fallback" ,
451
451
keyDownEvent->keyname );
452
452
return false ;
453
453
}
@@ -461,27 +461,27 @@ bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
461
461
last_handled_ecore_event_keyname_ = keyDownEvent->keyname ;
462
462
}
463
463
464
- FT_LOGD (" The %skey-event[%s] are%s filtered" , isIME ? " IME " : " " ,
464
+ FT_LOGI (" The %skey-event[%s] are%s filtered" , isIME ? " IME " : " " ,
465
465
keyDownEvent->keyname , handled ? " " : " not" );
466
466
467
467
if (!handled && !strcmp (keyDownEvent->key , " Return" ) && in_select_mode_ &&
468
468
engine_->device_profile == DeviceProfile::kWearable ) {
469
469
in_select_mode_ = false ;
470
470
handled = true ;
471
- FT_LOGD (" Set select mode[false]" );
471
+ FT_LOGI (" Set select mode[false]" );
472
472
}
473
473
474
474
return handled;
475
475
}
476
476
477
477
void TextInputChannel::NonIMFFallback (Ecore_Event_Key* keyDownEvent) {
478
- FT_LOGD (" NonIMFFallback key name [%s]" , keyDownEvent->keyname );
478
+ FT_LOGI (" NonIMFFallback key name [%s]" , keyDownEvent->keyname );
479
479
480
480
// For mobile, fix me!
481
481
if (engine_->device_profile == DeviceProfile::kMobile &&
482
482
edit_status_ == EditStatus::kPreeditEnd ) {
483
483
SetEditStatus (EditStatus::kNone );
484
- FT_LOGD (" Ignore key-event[%s]!" , keyDownEvent->keyname );
484
+ FT_LOGW (" Ignore key-event[%s]!" , keyDownEvent->keyname );
485
485
return ;
486
486
}
487
487
@@ -548,20 +548,19 @@ void TextInputChannel::EnterPressed(flutter::TextInputModel* model,
548
548
}
549
549
550
550
void TextInputChannel::OnCommit (std::string str) {
551
- FT_LOGD (" OnCommit str[%s]" , str.data ());
551
+ FT_LOGI (" OnCommit str[%s]" , str.data ());
552
552
SetEditStatus (EditStatus::kCommit );
553
553
554
554
ConsumeLastPreedit ();
555
555
556
556
active_model_->AddText (str);
557
- FT_LOGD (" Add Text[%s]" , str.data ());
558
557
559
558
SendStateUpdate (*active_model_);
560
559
SetEditStatus (EditStatus::kNone );
561
560
}
562
561
563
562
void 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);
565
564
SetEditStatus (EditStatus::kPreeditStart );
566
565
if (str.compare (" " ) == 0 ) {
567
566
SetEditStatus (EditStatus::kPreeditEnd );
@@ -571,8 +570,6 @@ void TextInputChannel::OnPreedit(std::string str, int cursor_pos) {
571
570
(edit_status_ == EditStatus::kPreeditEnd &&
572
571
// For tv, fix me
573
572
last_handled_ecore_event_keyname_.compare (" Return" ) != 0 )) {
574
- FT_LOGD (" last_handled_ecore_event_keyname_[%s]" ,
575
- last_handled_ecore_event_keyname_.data ());
576
573
last_handled_ecore_event_keyname_ = " " ;
577
574
ConsumeLastPreedit ();
578
575
}
@@ -584,13 +581,13 @@ void TextInputChannel::OnPreedit(std::string str, int cursor_pos) {
584
581
preedit_end_pos_ = active_model_->selection ().base ();
585
582
have_preedit_ = true ;
586
583
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_,
588
585
preedit_end_pos_);
589
586
}
590
587
}
591
588
void TextInputChannel::OnPreeditForPlatformView (std::string str,
592
589
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 (),
594
591
cursor_pos);
595
592
596
593
SetEditStatus (EditStatus::kPreeditStart );
@@ -602,8 +599,6 @@ void TextInputChannel::OnPreeditForPlatformView(std::string str,
602
599
(edit_status_ == EditStatus::kPreeditEnd &&
603
600
// For tv, fix me
604
601
last_handled_ecore_event_keyname_.compare (" Return" ) != 0 )) {
605
- FT_LOGD (" last_handled_ecore_event_keyname_[%s]" ,
606
- last_handled_ecore_event_keyname_.data ());
607
602
last_handled_ecore_event_keyname_ = " " ;
608
603
}
609
604
@@ -614,7 +609,6 @@ void TextInputChannel::OnPreeditForPlatformView(std::string str,
614
609
}
615
610
616
611
void TextInputChannel::ShowSoftwareKeyboard () {
617
- FT_LOGD (" Show input panel" );
618
612
if (imf_context_ && !is_software_keyboard_showing_) {
619
613
is_software_keyboard_showing_ = true ;
620
614
Ecore_IMF_Input_Panel_Layout panel_layout;
@@ -627,7 +621,6 @@ void TextInputChannel::ShowSoftwareKeyboard() {
627
621
}
628
622
629
623
void TextInputChannel::HideSoftwareKeyboard () {
630
- FT_LOGD (" Hide input panel" );
631
624
if (imf_context_ && is_software_keyboard_showing_) {
632
625
is_software_keyboard_showing_ = false ;
633
626
ResetCurrentContext ();
@@ -636,7 +629,6 @@ void TextInputChannel::HideSoftwareKeyboard() {
636
629
}
637
630
638
631
void TextInputChannel::SetEditStatus (EditStatus edit_status) {
639
- FT_LOGD (" Set edit status[%d]" , edit_status);
640
632
edit_status_ = edit_status;
641
633
}
642
634
@@ -699,7 +691,7 @@ void TextInputChannel::ConsumeLastPreedit() {
699
691
int count = preedit_end_pos_ - preedit_start_pos_;
700
692
active_model_->DeleteSurrounding (-count, count);
701
693
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,
703
695
before.data (), after.data ());
704
696
SendStateUpdate (*active_model_);
705
697
}
0 commit comments