diff --git a/src/widget/tool/croppinglabel.cpp b/src/widget/tool/croppinglabel.cpp index 7b20ec789..047050c58 100644 --- a/src/widget/tool/croppinglabel.cpp +++ b/src/widget/tool/croppinglabel.cpp @@ -40,7 +40,8 @@ CroppingLabel::CroppingLabel(QWidget* parent) protected: void keyPressEvent(QKeyEvent* event) override { - if (event->key() == Qt::Key_Escape) { + if (event->key() == Qt::Key_Escape) + { undo(); clearFocus(); }