(svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open.
This commit is contained in:
@@ -1750,8 +1750,7 @@ void HandleKeypress(uint32 raw_key)
|
||||
/* Check if the focused window has a focused editbox */
|
||||
if (EditBoxInGlobalFocus()) {
|
||||
/* All input will in this case go to the focused window */
|
||||
_focused_window->OnKeyPress(key, keycode);
|
||||
return;
|
||||
if (_focused_window->OnKeyPress(key, keycode) == Window::ES_HANDLED) return;
|
||||
}
|
||||
|
||||
/* Call the event, start with the uppermost window. */
|
||||
|
Reference in New Issue
Block a user