diff --git a/Userland/Applications/PixelPaint/ImageEditor.cpp b/Userland/Applications/PixelPaint/ImageEditor.cpp index 240e8efadd..3e56f97bc9 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.cpp +++ b/Userland/Applications/PixelPaint/ImageEditor.cpp @@ -423,6 +423,11 @@ void ImageEditor::keydown_event(GUI::KeyEvent& event) if (m_active_tool && m_active_tool->on_keydown(event)) return; + if (event.key() == Key_Escape && !m_image->selection().is_empty()) { + m_image->selection().clear(); + return; + } + event.ignore(); }