Android: Do not close the keyboard for NO_ENTER_ACTION
After commit cc9144b4f3
, 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
Pick-to: 6.5 6.4 6.2
Fixes: QTBUG-107662
Change-Id: Id280c4a67e3940fce5045724f77284a77c886f06
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
46d2b45d2c
commit
abe3bc1c43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user