summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibVT/Terminal.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibVT/Terminal.cpp b/Libraries/LibVT/Terminal.cpp
index d35f64066e..22af6fa62b 100644
--- a/Libraries/LibVT/Terminal.cpp
+++ b/Libraries/LibVT/Terminal.cpp
@@ -1046,6 +1046,11 @@ void Terminal::handle_key_press(KeyCode key, u8 character, u8 flags)
break;
}
+ if (!character) {
+ // Probably a modifier being pressed.
+ return;
+ }
+
if (shift && key == KeyCode::Key_Tab) {
emit_string("\033[Z");
return;