terminal/keys: add `Space` identifier in Key Display impl

memfd
Manos Pitsidianakis 2020-08-18 12:12:10 +03:00
parent 9afbdd4887
commit d95aae1987
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ impl fmt::Display for Key {
use crate::Key::*;
match self {
F(n) => write!(f, "F{}", n),
Char(' ') => write!(f, "Space"),
Char('\t') => write!(f, "Tab"),
Char('\n') => write!(f, "Enter"),
Char(c) => write!(f, "{}", c),