mirror of
https://github.com/ENSL/NS.git
synced 2024-11-28 15:22:06 +00:00
fix for typing another key in chat before releasing enter key causing it to send the message
This commit is contained in:
parent
a04cc4fd40
commit
1748d39d7e
1 changed files with 21 additions and 18 deletions
|
@ -242,6 +242,8 @@ void ChatPanel::KeyEvent(int iKeydown)
|
|||
}
|
||||
}
|
||||
if (state[SDL_SCANCODE_RETURN])
|
||||
{
|
||||
if (iKeydown && !bTextinput)
|
||||
{
|
||||
std::string theCommand;
|
||||
|
||||
|
@ -271,3 +273,4 @@ void ChatPanel::KeyEvent(int iKeydown)
|
|||
CancelChat();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue