From 72d306873f22fdb625d5aac94c9cecd6ed07ef00 Mon Sep 17 00:00:00 2001 From: JoshuaJB Date: Mon, 3 Feb 2014 21:46:27 +0000 Subject: [PATCH] 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. --- source/gui/CInput.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gui/CInput.cpp b/source/gui/CInput.cpp index af9fed897e..3025b52034 100644 --- a/source/gui/CInput.cpp +++ b/source/gui/CInput.cpp @@ -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. {