Menu windows are no longer the preferred keyboard events target (for

now, at least). This feature wasn't used yet anyway, and turning it 
off cures bug #1152.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20662 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-04-12 12:28:13 +00:00
parent bf48e753d7
commit ba4918e74c

View File

@ -1105,10 +1105,13 @@ Desktop::_UpdateFronts(bool updateFloating)
EventTarget*
Desktop::KeyboardEventTarget()
{
// TODO: Not yet useful, and prevents a crashing application
// which has opened menu windows to be debugged (ticket #1152)
#if 0
WindowLayer* window = _CurrentWindows().LastWindow();
if (window != NULL && window->Feel() == kMenuWindowFeel)
return &window->EventTarget();
#endif
if (FocusWindow() != NULL)
return &FocusWindow()->EventTarget();