summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-08-12 21:31:43 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-08-12 14:15:24 +0200
commitce8387d1ed001aae593c934e1119705525b51d85 (patch)
tree2e76031d95525592f8bb4286325ca84d339eee98
parentdffdd5545a360315fcd53c7b664cb991c9e7180f (diff)
downloadserenity-ce8387d1ed001aae593c934e1119705525b51d85.zip
VirtualConsole: Only consume data from key-down events
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 69cffb2ed7..7fd1d5ccba 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -494,6 +494,8 @@ void VirtualConsole::on_char(u8 ch)
void VirtualConsole::on_key_pressed(KeyboardDevice::Event key)
{
+ if (!key.is_press())
+ return;
if (key.ctrl()) {
if (key.character >= 'a' && key.character <= 'z') {
emit(key.character - 'a' + 1);