From c2881f24c94cd48d50f8dd93047ae193a8b54e26 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 1 Jul 2011 00:25:51 -0300 Subject: [PATCH] Fix problem in PopupFrame::onProcessMessage() where key-pressed events are lost when the popup frame is focused. --- src/gui/popup_frame.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/popup_frame.cpp b/src/gui/popup_frame.cpp index a4e3412d9..d048dd6a1 100644 --- a/src/gui/popup_frame.cpp +++ b/src/gui/popup_frame.cpp @@ -103,8 +103,9 @@ bool PopupFrame::onProcessMessage(Message* msg) msg->key.scancode == KEY_ENTER || msg->key.scancode == KEY_ENTER_PAD)) { closeWindow(NULL); + return false; } - return false; + break; case JM_BUTTONPRESSED: // If the user click outside the window, we have to close the