mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fixup! feat: support case insensitive special keys in keymappings
This commit is contained in:
parent
a5d9893fd5
commit
a6d13836e7
1 changed files with 6 additions and 4 deletions
|
|
@ -112,10 +112,12 @@ impl FromStr for Key {
|
||||||
"f12" => key.code = KeyCode::F(12),
|
"f12" => key.code = KeyCode::F(12),
|
||||||
"esc" => key.code = KeyCode::Esc,
|
"esc" => key.code = KeyCode::Esc,
|
||||||
|
|
||||||
c if it.peek().is_none() => {
|
_ => match x {
|
||||||
key.code = KeyCode::Char(c.chars().next().unwrap());
|
c if it.peek().is_none() => {
|
||||||
}
|
key.code = KeyCode::Char(c.chars().next().unwrap());
|
||||||
k => bail!("unknown key: {k}"),
|
}
|
||||||
|
k => bail!("unknown key: {k}"),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue