Fix CTRL+SPACE behaviour on QT5.
This commit is contained in:
@@ -718,7 +718,7 @@ QByteArray KeyboardTranslator::Entry::unescape(const QByteArray& input) const
|
||||
}
|
||||
|
||||
if ( escapedChar )
|
||||
result.replace(i,charsToRemove,replacement);
|
||||
result.replace(i,charsToRemove,replacement,1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -953,7 +953,7 @@ void Vt102Emulation::sendKeyEvent( QKeyEvent* event )
|
||||
}
|
||||
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) {
|
||||
textToSend += (event->key() & 0x1f);
|
||||
|
||||
Reference in New Issue
Block a user