Correctly handle the keypad enter in CInput.cpp and make the return key case catch SDLK_RETURN instead of '/r' for consistancy and readability.

This was SVN commit r14730.
This commit is contained in:
JoshuaJB 2014-02-03 21:46:27 +00:00
parent 91be7d9bd1
commit 72d306873f

View File

@ -393,7 +393,8 @@ InReaction CInput::ManuallyHandleEvent(const SDL_Event_* ev)
break;
/* END: Message History Lookup */
case '\r':
case SDLK_KP_ENTER:
case SDLK_RETURN:
// 'Return' should do a Press event for single liners (e.g. submitting forms)
// otherwise a '\n' character will be added.
{