Android: Close the keyboard after clicking Done

The keyboard was not hiding after clicking the done button.
This commit changes this behavior. If KeyCode is other than
IME_ACTION_PREVIOUS/IME_ACTION_NEXT the keyboard closes automatically.

Fixes: QTBUG-107662
Change-Id: I3449aa6898b826bfa03104275c7224329f24ed9a
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit cc9144b4f39923dfb9ee17f951f93f257aa2d221)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Bartlomiej Moskal 2022-11-10 09:19:59 +01:00 committed by Qt Cherry-pick Bot
parent 8dd90fc8aa
commit 16040e51f7

View File

@ -253,6 +253,7 @@ public class QtInputConnection extends BaseInputConnection
return super.sendKeyEvent(fakeEvent);
default:
QtNative.activityDelegate().hideSoftwareKeyboard();
break;
}
}