Fix special key bindings (e.g. <C-d>)

This commit is contained in:
Drew DeVault 2019-03-15 21:54:44 -04:00
parent 52a97c02ae
commit f47a927ab6

View file

@ -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
} }
} }