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:
parent
91be7d9bd1
commit
72d306873f
@ -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.
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user