r15228 by jghali - #8909: <tab> does not replace the current selection
scribus-commit
scribus-commit at lists.scribus.net
Sat Jun 19 01:10:20 CEST 2010
Revision: 15228
Author: jghali
Date: 2010-06-18T23:04:10.209278Z
Commit message: #8909: <tab> does not replace the current selection
Changeset:
M /branches/Version135/Scribus/scribus/pageitem_textframe.cpp
Diffs:
Index: scribus/pageitem_textframe.cpp
===================================================================
--- scribus/pageitem_textframe.cpp (revision 15227)
+++ scribus/pageitem_textframe.cpp (revision 15228)
@@ -3078,8 +3078,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