VirtualConsole: Only consume data from key-down events

This commit is contained in:
Conrad Pankoff 2019-08-12 21:31:43 +10:00 committed by Andreas Kling
parent dffdd5545a
commit ce8387d1ed
Notes: sideshowbarker 2024-07-19 12:42:48 +09:00

View file

@ -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);