Android: Do not close the keyboard for NO_ENTER_ACTION

After commit cc9144b4f39923dfb9ee17f951f93f257aa2d221, virtual keyboard
is hiding after clicking the done button. This is expected behavior,
but not in case when imOption is set to IME_FLAG_NO_ENTER_ACTION[0]

This commit removes hiding keyboard in mentioned case.

[0]https://developer.android.com/reference/android/view/inputmethod/EditorInfo#IME_FLAG_NO_ENTER_ACTION

Fixes: QTBUG-107662
Change-Id: Id280c4a67e3940fce5045724f77284a77c886f06
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
(cherry picked from commit abe3bc1c432e670fc1244a643b720c1b6a2d56f6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Bartlomiej Moskal 2022-12-19 12:34:35 +01:00 committed by Qt Cherry-pick Bot
parent eb1b3594cd
commit 48c291f2b7

View File

@ -252,6 +252,9 @@ public class QtInputConnection extends BaseInputConnection
KeyEvent.META_SHIFT_ON);
return super.sendKeyEvent(fakeEvent);
case android.view.inputmethod.EditorInfo.IME_FLAG_NO_ENTER_ACTION:
break;
default:
QtNative.activityDelegate().hideSoftwareKeyboard();
break;