mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Implement basic focus.
This commit is contained in:
parent
44a32039be
commit
1929cb6b71
6 changed files with 45 additions and 4 deletions
|
@ -254,9 +254,10 @@ void WindowManager::event(Event& event)
|
|||
return processMouseEvent(static_cast<MouseEvent&>(event));
|
||||
|
||||
if (event.isKeyEvent()) {
|
||||
// FIXME: Implement proper focus.
|
||||
Widget* focusedWidget = g_tw;
|
||||
return focusedWidget->event(event);
|
||||
// FIXME: This is a good place to hook key events globally. :)
|
||||
if (m_activeWindow)
|
||||
return m_activeWindow->event(event);
|
||||
return Object::event(event);
|
||||
}
|
||||
|
||||
if (event.isPaintEvent())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue