mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:47:45 +00:00
PixelPaint: Allow keydown events to bubble from ImageEditor
Previously, all keydown KeyEvents were accepted, causing parent widgets not to receive them. With the addition of shortcut handling to keydown, shortcuts were not called when the ImageEditor was focused.
This commit is contained in:
parent
967dfa7956
commit
7ce346e50e
19 changed files with 62 additions and 41 deletions
|
@ -61,7 +61,7 @@ public:
|
|||
virtual void on_context_menu(Layer*, GUI::ContextMenuEvent&) { }
|
||||
virtual void on_tool_button_contextmenu(GUI::ContextMenuEvent&) { }
|
||||
virtual void on_second_paint(Layer const*, GUI::PaintEvent&) { }
|
||||
virtual void on_keydown(GUI::KeyEvent&);
|
||||
virtual bool on_keydown(GUI::KeyEvent const&);
|
||||
virtual void on_keyup(GUI::KeyEvent&) { }
|
||||
virtual void on_tool_activation() { }
|
||||
virtual GUI::Widget* get_properties_widget() { return nullptr; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue