mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix
This commit is contained in:
parent
c7353343e2
commit
437ecc682f
1 changed files with 3 additions and 3 deletions
|
|
@ -33,12 +33,12 @@ impl Default for Key {
|
|||
impl From<KeyEvent> for Key {
|
||||
fn from(value: KeyEvent) -> Self {
|
||||
// For alphabet:
|
||||
// Unix : <S-a> => Char("A") + Shift
|
||||
// Windows : <S-a> => Char("A") + Shift
|
||||
// Unix : <S-a> => Char("A") + SHIFT
|
||||
// Windows : <S-a> => Char("A") + SHIFT
|
||||
//
|
||||
// For non-alphabet:
|
||||
// Unix : <S-`> => Char("~") + NULL
|
||||
// Windows : <S-`> => Char("`") + Shift
|
||||
// Windows : <S-`> => Char("~") + SHIFT
|
||||
//
|
||||
// So we detect `Char("`") + Shift`, and change it to `Char("~") + NULL`
|
||||
// for consistent behavior between OSs.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue