Press escape to deselect, stop editing elements, and go back to edit tool
This commit is contained in:
parent
762016be4c
commit
b58e11c703
9 changed files with 22 additions and 21 deletions
|
|
@ -784,7 +784,7 @@ void Toolbar::chat_box() {
|
|||
t.selection.selected = true;
|
||||
chatBoxState = CHATBOXSTATE_OPEN;
|
||||
}
|
||||
if(main.input.key(InputManager::KEY_TEXT_ESCAPE).pressed)
|
||||
if(main.input.key(InputManager::KEY_GENERIC_ESCAPE).pressed)
|
||||
t.selection.selected = false;
|
||||
if(main.input.key(InputManager::KEY_TEXT_ENTER).pressed) {
|
||||
main.world->send_chat_message(chatMessageInput);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue