Changed format of printed keys

Now it is easier to distinguish between strings and actual keys. For
example: <esc> or <e><s><c>.
master
Dennis Potter 4 years ago
parent 44c542d99a
commit daf88336eb
  1. 3
      src/key_operations.rs

@ -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…
Cancel
Save