Do not display unsupported key in debug

This commit is contained in:
Artlef 2020-11-29 15:46:07 +01:00
parent 9c17bcfeb8
commit 00ea1759d4

View File

@ -403,9 +403,7 @@ fn start_keyboard_input_thread(
.send(DisplayMessage::RemoveLastInput)
.unwrap();
}
Event::Key(k) => display_sender
.send(DisplayMessage::Debug(format!("unknown key {:?}", k)))
.unwrap(),
Event::Key(_) => continue,
Event::Mouse(_) => continue,
Event::Unsupported(_) => continue,
};