diff options
Diffstat (limited to 'Applications/PixelPaint')
-rw-r--r-- | Applications/PixelPaint/ImageEditor.cpp | 1 | ||||
-rw-r--r-- | Applications/PixelPaint/ImageEditor.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/Applications/PixelPaint/ImageEditor.cpp b/Applications/PixelPaint/ImageEditor.cpp index a265ce3f03..3f0bfb72b7 100644 --- a/Applications/PixelPaint/ImageEditor.cpp +++ b/Applications/PixelPaint/ImageEditor.cpp @@ -36,6 +36,7 @@ namespace PixelPaint { ImageEditor::ImageEditor() { + set_focus_policy(GUI::FocusPolicy::StrongFocus); } ImageEditor::~ImageEditor() diff --git a/Applications/PixelPaint/ImageEditor.h b/Applications/PixelPaint/ImageEditor.h index 4c9b7f8d75..4e343e5656 100644 --- a/Applications/PixelPaint/ImageEditor.h +++ b/Applications/PixelPaint/ImageEditor.h @@ -82,8 +82,6 @@ public: private: ImageEditor(); - virtual bool accepts_focus() const override { return true; } - virtual void paint_event(GUI::PaintEvent&) override; virtual void second_paint_event(GUI::PaintEvent&) override; virtual void mousedown_event(GUI::MouseEvent&) override; |