r14136 by cbradney - Add control char hack for keystrokes for 7798
scribus-commit
scribus-commit at lists.scribus.net
Sun Oct 11 00:45:17 CEST 2009
Revision: 14136
Author: cbradney
Date: 2009-10-10T21:48:27.528348Z
Commit message: Add control char hack for keystrokes for 7798
Changeset:
M /trunk/Scribus/scribus/pageitem_textframe.cpp
Diffs:
Index: scribus/pageitem_textframe.cpp
===================================================================
--- scribus/pageitem_textframe.cpp (revision 14135)
+++ scribus/pageitem_textframe.cpp (revision 14136)
@@ -3158,11 +3158,14 @@
if (itemText.lengthOfSelection() > 0) //(kk < 0x1000)
{
bool x11Hack=false;
+ bool controlCharHack=false;
+ if ((k->text().size()==1) && (k->text().at(0).unicode()<32))
+ controlCharHack=true;
#if defined (Q_WS_X11)
if ((k->text().size()==1) && (k->modifiers() & Qt::ShiftModifier) && (k->modifiers() & Qt::ControlModifier) && (k->nativeVirtualKey() < 1000))
x11Hack=true;
#endif
- if (!x11Hack && !k->text().isEmpty())
+ if (!controlCharHack && !x11Hack && !k->text().isEmpty())
{
deleteSelectedTextFromFrame();
doUpdate = true;
More information about the scribus-commit
mailing list