ui: complete fmt::Display impl for Key

embed
Manos Pitsidianakis 5 years ago
parent 067a8e5c81
commit 2a93463f74
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -81,7 +81,19 @@ impl fmt::Display for Key {
Alt(c) => write!(f, "M-{}", c),
Ctrl(c) => write!(f, "C-{}", c),
Paste(_) => write!(f, "Pasted buf"),
a => write!(f, "{}", stringify!(a)),
Null => write!(f, "Null byte"),
Esc => write!(f, "Esc"),
Backspace => write!(f, "Backspace"),
Left => write!(f, "Left"),
Right => write!(f, "Right"),
Up => write!(f, "Up"),
Down => write!(f, "Down"),
Home => write!(f, "Home"),
End => write!(f, "End"),
PageUp => write!(f, "PageUp"),
PageDown => write!(f, "PageDown"),
Delete => write!(f, "Delete"),
Insert => write!(f, "Insert"),
}
}
}

Loading…
Cancel
Save