Commit e1ae91ce authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Upon Ctrl+C cancel flow control

If flow control is enabled, it is cancelled upon Ctrl+C.  This mimics
xterm results.
BUG: 293534
FIXED-IN: 4.9
(cherry picked from commit b9a69ec0)
parent 6fe34e93
......@@ -938,12 +938,16 @@ void Vt102Emulation::sendKeyEvent( QKeyEvent* event )
states |= KeyboardTranslator::ApplicationKeypadState;
// check flow control state
if (modifiers & Qt::ControlModifier)
{
if (event->key() == Qt::Key_S)
if (modifiers & Qt::ControlModifier) {
switch (event->key()) {
case Qt::Key_S:
emit flowControlKeyPressed(true);
else if (event->key() == Qt::Key_Q)
break;
case Qt::Key_Q:
case Qt::Key_C: // cancel flow control
emit flowControlKeyPressed(false);
break;
}
}
// lookup key binding
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment