mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 20:43:45 +01:00
Android: Clear chat open flag on cancel or completion (#8478)
This commit is contained in:
parent
38b94f248a
commit
cff1e9ca27
@ -1880,6 +1880,9 @@ void Game::processKeyInput()
|
|||||||
} else if (wasKeyDown(KeyType::INVENTORY)) {
|
} else if (wasKeyDown(KeyType::INVENTORY)) {
|
||||||
openInventory();
|
openInventory();
|
||||||
} else if (input->cancelPressed()) {
|
} else if (input->cancelPressed()) {
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
m_android_chat_open = false;
|
||||||
|
#endif
|
||||||
if (!gui_chat_console->isOpenInhibited()) {
|
if (!gui_chat_console->isOpenInhibited()) {
|
||||||
showPauseMenu();
|
showPauseMenu();
|
||||||
}
|
}
|
||||||
@ -2079,6 +2082,7 @@ void Game::handleAndroidChatInput()
|
|||||||
if (m_android_chat_open && porting::getInputDialogState() == 0) {
|
if (m_android_chat_open && porting::getInputDialogState() == 0) {
|
||||||
std::string text = porting::getInputDialogValue();
|
std::string text = porting::getInputDialogValue();
|
||||||
client->typeChatMessage(utf8_to_wide(text));
|
client->typeChatMessage(utf8_to_wide(text));
|
||||||
|
m_android_chat_open = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user