Allow login with next button in native android keyboard

This commit is contained in:
Benau 2019-05-28 09:52:20 +08:00
parent 1d3dfc3110
commit 4413c06a82

View File

@ -206,7 +206,9 @@ EventPropagation BaseUserScreen::filterActions(PlayerAction action,
Input::InputType type,
int playerId)
{
if (action == PA_MENU_SELECT && !ScreenKeyboard::shouldUseScreenKeyboard())
if (action == PA_MENU_SELECT &&
(!ScreenKeyboard::shouldUseScreenKeyboard() ||
GUIEngine::getDevice()->hasOnScreenKeyboard()))
{
if ((m_username_tb != NULL && m_username_tb->isFocusedForPlayer(PLAYER_ID_GAME_MASTER))
|| (m_password_tb != NULL && m_password_tb->isFocusedForPlayer(PLAYER_ID_GAME_MASTER)))