Fix CTRL+SPACE behaviour on QT5.

This commit is contained in:
Filippo Scognamiglio
2015-04-03 19:01:43 +02:00
parent fec83ebad8
commit 490eeaf195
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -718,7 +718,7 @@ QByteArray KeyboardTranslator::Entry::unescape(const QByteArray& input) const
} }
if ( escapedChar ) if ( escapedChar )
result.replace(i,charsToRemove,replacement); result.replace(i,charsToRemove,replacement,1);
} }
} }
+1 -1
View File
@@ -953,7 +953,7 @@ void Vt102Emulation::sendKeyEvent( QKeyEvent* event )
} }
else if ( !entry.text().isEmpty() ) else if ( !entry.text().isEmpty() )
{ {
textToSend += _codec->fromUnicode(entry.text(true,modifiers)); textToSend += entry.text(true,modifiers);
} }
else if((modifiers & Qt::ControlModifier) && event->key() >= 0x40 && event->key() < 0x5f) { else if((modifiers & Qt::ControlModifier) && event->key() >= 0x40 && event->key() < 0x5f) {
textToSend += (event->key() & 0x1f); textToSend += (event->key() & 0x1f);