Changed format of printed keys
Now it is easier to distinguish between strings and actual keys. For example: <esc> or <e><s><c>.
This commit is contained in:
parent
44c542d99a
commit
daf88336eb
@ -355,7 +355,8 @@ pub fn encode_byte(c: &str) -> Option<u8> {
|
||||
pub fn decode_byte(u: &u8) -> Option<String> {
|
||||
for key in KEY_MAP.iter() {
|
||||
if key.1 == *u {
|
||||
return Some(key.0.to_string())
|
||||
let return_value = format!("{}{}{}", "<", key.0.to_string(), ">");
|
||||
return Some(return_value)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user