Fix special key bindings (e.g. <C-d>)
This commit is contained in:
parent
52a97c02ae
commit
f47a927ab6
1 changed files with 6 additions and 1 deletions
|
@ -50,7 +50,12 @@ func (bindings *KeyBindings) GetBinding(
|
|||
continue
|
||||
}
|
||||
for i, stroke := range input {
|
||||
if stroke != binding.Input[i] {
|
||||
if stroke.Key != binding.Input[i].Key {
|
||||
goto next
|
||||
}
|
||||
if stroke.Key == tcell.KeyRune &&
|
||||
stroke.Rune != binding.Input[i].Rune {
|
||||
|
||||
goto next
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue