aboutsummaryrefslogtreecommitdiffstats
path: root/config/bindings.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-15 21:54:44 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-15 21:54:44 -0400
commitf47a927ab612200f7fa97fc576802fb3f5e65970 (patch)
tree389f540985990475297ad1800d6e6a8b9c3f5166 /config/bindings.go
parent52a97c02aeec3c994d2c10e53b024abeb4e7b337 (diff)
downloadaerc-f47a927ab612200f7fa97fc576802fb3f5e65970.tar.gz
Fix special key bindings (e.g. <C-d>)
Diffstat (limited to 'config/bindings.go')
-rw-r--r--config/bindings.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/bindings.go b/config/bindings.go
index 084ed589..39b50cea 100644
--- a/config/bindings.go
+++ b/config/bindings.go
@@ -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
}
}