Fix special key bindings (e.g. <C-d>)
This commit is contained in:
parent
52a97c02ae
commit
f47a927ab6
|
@ -50,7 +50,12 @@ func (bindings *KeyBindings) GetBinding(
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for i, stroke := range input {
|
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
|
goto next
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue