summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2012-02-11 19:19:34 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2012-02-11 19:19:34 (GMT)
commitb9a69ec009d69d14561c07efc8559e4d6a708777 (patch)
tree797826d68ab3f4dbfcc15c3026bb32cb0ff9357e
parent2301ab5b81a2a4c274e4665653ba8b754be45ea4 (diff)
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
-rw-r--r--src/Vt102Emulation.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Vt102Emulation.cpp b/src/Vt102Emulation.cpp
index afbddd6..b98952e 100644
--- a/src/Vt102Emulation.cpp
+++ b/src/Vt102Emulation.cpp
@@ -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