merge same lines

This commit is contained in:
sxyazi 2023-09-21 00:09:39 +08:00
parent b9e9acc6d8
commit d1d84a2b96
No known key found for this signature in database

View file

@ -44,8 +44,7 @@ impl From<KeyEvent> for Key {
// for consistent behavior between OSs. // for consistent behavior between OSs.
let shift = match (value.code, value.modifiers) { let shift = match (value.code, value.modifiers) {
(KeyCode::Char(c), _) if c.is_ascii_uppercase() => true, (KeyCode::Char(c), _) => c.is_ascii_uppercase(),
(KeyCode::Char(_), m) if m.contains(KeyModifiers::SHIFT) => false,
(_, m) => m.contains(KeyModifiers::SHIFT), (_, m) => m.contains(KeyModifiers::SHIFT),
}; };