diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2019-08-12 21:31:43 +1000 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-12 14:15:24 +0200 |
commit | ce8387d1ed001aae593c934e1119705525b51d85 (patch) | |
tree | 2e76031d95525592f8bb4286325ca84d339eee98 /Kernel/TTY | |
parent | dffdd5545a360315fcd53c7b664cb991c9e7180f (diff) | |
download | serenity-ce8387d1ed001aae593c934e1119705525b51d85.zip |
VirtualConsole: Only consume data from key-down events
Diffstat (limited to 'Kernel/TTY')
-rw-r--r-- | Kernel/TTY/VirtualConsole.cpp | 2 |
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); |