r18986 by jghali - fix exit of text edit mode with Escape key
scribus-commit
scribus-commit at lists.scribus.net
Thu Apr 3 14:45:45 UTC 2014
Author: jghali
Date: Thu Apr 3 14:45:45 2014
New Revision: 18986
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18986
Log:
fix exit of text edit mode with Escape key
Modified:
trunk/Scribus/scribus/canvasmode_edit.cpp
Modified: trunk/Scribus/scribus/canvasmode_edit.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18986&path=/trunk/Scribus/scribus/canvasmode_edit.cpp
==============================================================================
--- trunk/Scribus/scribus/canvasmode_edit.cpp (original)
+++ trunk/Scribus/scribus/canvasmode_edit.cpp Thu Apr 3 14:45:45 2014
@@ -100,6 +100,14 @@
if (m_keyRepeat)
return;
m_keyRepeat = true;
+ e->accept();
+
+ if (e->key() == Qt::Key_Escape)
+ {
+ // Go back to normal mode.
+ m_view->requestMode(modeNormal);
+ return;
+ }
PageItem* currItem;
if (!GetItem(&currItem))
More information about the scribus-commit
mailing list