mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-26 11:23:31 +04:00
key_canonicalization now only matches chars
This commit is contained in:
parent
68abc67ec6
commit
daad8ebe12
@ -692,8 +692,12 @@ fn cursor_position(&self, area: Rect, editor: &Editor) -> Option<Position> {
|
||||
}
|
||||
|
||||
fn canonicalize_key(key: &mut KeyEvent) -> KeyEvent {
|
||||
if let KeyEvent { code: KeyCode::Char(_), modifiers: KeyModifiers::SHIFT } = key {
|
||||
key.modifiers = KeyModifiers::NONE;
|
||||
if let KeyEvent {
|
||||
code: KeyCode::Char(_),
|
||||
modifiers: _,
|
||||
} = key
|
||||
{
|
||||
key.modifiers.remove(KeyModifiers::SHIFT)
|
||||
}
|
||||
*key
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user