core: layout: modify tab with fn to a literal tab character

This commit is contained in:
Richard Acayan 2024-08-04 22:15:32 -04:00
parent 3bb02196db
commit c262b744aa

View file

@ -186,6 +186,9 @@ impl Part {
fn modify_fn(orig_sym: &KeyValue) -> KeyValue fn modify_fn(orig_sym: &KeyValue) -> KeyValue
{ {
match orig_sym { match orig_sym {
KeyValue(Keysym::Tab, _)
=> KeyValue::from(Keysym::NoSymbol, "\t"),
KeyValue(Keysym::Up, _) KeyValue(Keysym::Up, _)
=> KeyValue::from(Keysym::Prior, ""), // Page Up => KeyValue::from(Keysym::Prior, ""), // Page Up
KeyValue(Keysym::Down, _) KeyValue(Keysym::Down, _)
@ -445,6 +448,7 @@ impl Part {
{ {
match self.val.1.as_ref() { match self.val.1.as_ref() {
" " => "", " " => "",
"\t" => "\\t",
l => l, l => l,
} }
} }