Commit b9a69ec0 authored by Kurt Hindenburg's avatar Kurt Hindenburg

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
parent 2301ab5b
......@@ -977,10 +977,15 @@ void Vt102Emulation::sendKeyEvent(QKeyEvent* event)
// check flow control state
if (modifiers & Qt::ControlModifier) {
if (event->key() == Qt::Key_S)
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
......
Markdown is supported
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