1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 21:27:34 +00:00

WindowServer: Move key event handling to its own function

Instead of making WindowManager::event() all about key events.
This commit is contained in:
Andreas Kling 2021-06-18 17:59:00 +02:00
parent 4895f46d8c
commit de8aa1b17d
2 changed files with 88 additions and 81 deletions

View file

@ -243,6 +243,8 @@ private:
bool process_mouse_event_for_titlebar_buttons(MouseEvent const&);
void process_mouse_event_for_window(HitTestResult&, MouseEvent const&);
void process_key_event(KeyEvent&);
template<typename Callback>
void for_each_window_manager(Callback);