diff --git a/ui/src/virtualconsole/virtualconsole.cpp b/ui/src/virtualconsole/virtualconsole.cpp index 44aeda860..8c7357acd 100644 --- a/ui/src/virtualconsole/virtualconsole.cpp +++ b/ui/src/virtualconsole/virtualconsole.cpp @@ -1597,7 +1597,7 @@ void VirtualConsole::initContents() void VirtualConsole::keyPressEvent(QKeyEvent* event) { - if (event->isAutoRepeat() == true) + if (event->isAutoRepeat() == true || event->key() == 0) { event->ignore(); return; @@ -1611,7 +1611,7 @@ void VirtualConsole::keyPressEvent(QKeyEvent* event) void VirtualConsole::keyReleaseEvent(QKeyEvent* event) { - if (event->isAutoRepeat() == true) + if (event->isAutoRepeat() == true || event->key() == 0) { event->ignore(); return; diff --git a/ui/src/virtualconsole/virtualconsole.h b/ui/src/virtualconsole/virtualconsole.h index 9b3d64262..f53ca9c97 100644 --- a/ui/src/virtualconsole/virtualconsole.h +++ b/ui/src/virtualconsole/virtualconsole.h @@ -345,7 +345,7 @@ public slots: *********************************************************************/ protected: - /** Handler for keyboard key presse events */ + /** Handler for keyboard key press events */ void keyPressEvent(QKeyEvent* event); /** Handler for keyboard key release events */