r23751 by jghali - Fix rotate mode not exiting when pressing Esc key
scribus-commit
scribus-commit at lists.scribus.net
Sun May 10 18:38:50 UTC 2020
Author: jghali
Date: Sun May 10 18:38:50 2020
New Revision: 23751
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23751
Log:
Fix rotate mode not exiting when pressing Esc key
Modified:
trunk/Scribus/scribus/canvasmode_rotate.cpp
Modified: trunk/Scribus/scribus/canvasmode_rotate.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23751&path=/trunk/Scribus/scribus/canvasmode_rotate.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_rotate.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_rotate.cpp Sun May 10 18:38:50 2020
@@ -442,6 +442,14 @@
{
if (e->isAutoRepeat())
return;
+
+ if (e->key() == Qt::Key_Escape)
+ {
+ // Go back to normal mode.
+ m_view->requestMode(modeNormal);
+ return;
+ }
+
if (m_doc->m_Selection->isMultipleSelection())
{
double gx, gy, gh, gw;
More information about the scribus-commit
mailing list