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:
@@ -1105,10 +1105,13 @@ Desktop::_UpdateFronts(bool updateFloating)
|
|||||||
EventTarget*
|
EventTarget*
|
||||||
Desktop::KeyboardEventTarget()
|
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();
|
WindowLayer* window = _CurrentWindows().LastWindow();
|
||||||
if (window != NULL && window->Feel() == kMenuWindowFeel)
|
if (window != NULL && window->Feel() == kMenuWindowFeel)
|
||||||
return &window->EventTarget();
|
return &window->EventTarget();
|
||||||
|
#endif
|
||||||
if (FocusWindow() != NULL)
|
if (FocusWindow() != NULL)
|
||||||
return &FocusWindow()->EventTarget();
|
return &FocusWindow()->EventTarget();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user