Skip to content

Commit 1505b42

Browse files
committed
Fix a text input bug on TV
* Check the device where the key event occurred Signed-off-by: Boram Bae <[email protected]>
1 parent 9ebcb6a commit 1505b42

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

shell/platform/tizen/channels/text_input_channel.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,12 +402,11 @@ void TextInputChannel::SendStateUpdate(const flutter::TextInputModel& model) {
402402
bool TextInputChannel::FilterEvent(Ecore_Event_Key* keyDownEvent) {
403403
bool handled = false;
404404

405-
#ifdef TIZEN_RENDERER_EVAS_GL
406-
// Hardware keyboard not supported when running in Evas GL mode.
405+
#ifdef WEARABLE_PROFILE
406+
// Hardware keyboard not supported on watches.
407407
bool isIME = true;
408408
#else
409-
bool isIME = ecore_imf_context_keyboard_mode_get(imf_context_) ==
410-
ECORE_IMF_INPUT_PANEL_SW_KEYBOARD_MODE;
409+
bool isIME = strcmp(ecore_device_name_get(keyDownEvent->dev), "ime") == 0;
411410
#endif
412411

413412
Ecore_IMF_Event_Key_Down ecoreKeyDownEvent;

0 commit comments

Comments
 (0)