mirror of https://github.com/helix-editor/helix
key_canonicalization now only matches chars
parent
68abc67ec6
commit
daad8ebe12
|
@ -692,8 +692,12 @@ impl Component for EditorView {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn canonicalize_key(key: &mut KeyEvent) -> KeyEvent {
|
fn canonicalize_key(key: &mut KeyEvent) -> KeyEvent {
|
||||||
if let KeyEvent { code: KeyCode::Char(_), modifiers: KeyModifiers::SHIFT } = key {
|
if let KeyEvent {
|
||||||
key.modifiers = KeyModifiers::NONE;
|
code: KeyCode::Char(_),
|
||||||
|
modifiers: _,
|
||||||
|
} = key
|
||||||
|
{
|
||||||
|
key.modifiers.remove(KeyModifiers::SHIFT)
|
||||||
}
|
}
|
||||||
*key
|
*key
|
||||||
}
|
}
|
Loading…
Reference in New Issue