mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 05:58:31 +01:00
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:
parent
bf48e753d7
commit
ba4918e74c
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user