* Allow usage of / to start a command quickly.

* Allow usage of escape key to get out of chat screen.
This commit is contained in:
iProgramInCpp
2023-08-07 21:59:18 +03:00
parent 4c09bd2b1c
commit d5a733466d
3 changed files with 8 additions and 3 deletions

View File

@@ -400,11 +400,12 @@ void Gui::handleKeyPressed(int keyCode)
}
case AKEYCODE_T:
case AKEYCODE_SLASH:
{
if (m_pMinecraft->m_pScreen)
break;
m_pMinecraft->setScreen(new ChatScreen);
m_pMinecraft->setScreen(new ChatScreen(keyCode == AKEYCODE_SLASH));
break;
}
}