terminal/keys: add `Space` identifier in Key Display impl
parent
9afbdd4887
commit
d95aae1987
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue