Commit 3644a218 authored by elros34's avatar elros34

Do not generate garbage in terminal when physical shift and alt are sticky

parent 64a35549
......@@ -178,6 +178,10 @@ void Terminal::keyPress(int key, int modifiers, const QString& text)
resetBackBufferScrollPos();
// physical sticky shift generates key=0, mod=Qt::ShiftModifier, sticky alt: key=0, mod=0
if (key == 0 && (modifiers == Qt::ShiftModifier || modifiers == Qt::NoModifier))
return;
if (key > 0xFFFF) {
int modcode = (modifiers & Qt::ShiftModifier ? 1 : 0) |
(modifiers & Qt::AltModifier ? 2 : 0) |
......
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