r15229 by jghali - #8909: <tab> does not replace the current selection

scribus-commit scribus-commit at lists.scribus.net
Sat Jun 19 01:10:37 CEST 2010


Revision: 15229
Author: jghali
Date: 2010-06-18T23:05:53.104520Z
Commit message: #8909: <tab> does not replace the current selection

Changeset: 
M  /trunk/Scribus/scribus/pageitem_textframe.cpp

Diffs:
Index: scribus/pageitem_textframe.cpp
===================================================================
--- scribus/pageitem_textframe.cpp	(revision 15228)
+++ scribus/pageitem_textframe.cpp	(revision 15229)
@@ -3208,8 +3208,11 @@
 		{
 			bool x11Hack=false;
 			bool controlCharHack=false;
-			if ((k->text().size()==1) && (k->text().at(0).unicode()<32))
-				controlCharHack=true;
+			if ((k->text().size() == 1))
+			{
+				ushort uni = k->text().at(0).unicode();
+				controlCharHack = ((uni < 32) && (uni != SpecialChars::TAB.unicode()));
+			}
 #if defined (Q_WS_X11)
 			if ((k->text().size()==1) && (k->modifiers() & Qt::ShiftModifier) && (k->modifiers() & Qt::ControlModifier) && (k->nativeVirtualKey() < 1000))
 				x11Hack=true;




More information about the scribus-commit mailing list