aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Oleynikov <ivan.oleynikov95@gmail.com>2022-04-19 14:03:36 +0200
committerRobin Jarry <robin@jarry.cc>2022-04-25 11:22:12 +0200
commitf21916ce0a436e00e3c9d8eaf0d89c3b29a424b6 (patch)
treed4475cb1ba6f540b3f3216288cb5bdd6159727d0
parent25a8a00c558d0548944843df1a35b1db6aa4bfd2 (diff)
downloadaerc-f21916ce0a436e00e3c9d8eaf0d89c3b29a424b6.tar.gz
binds: fix incorrect key names for c-] and c-[
The left and right square brackets are inverted. Fix that. Signed-off-by: Ivan Oleynikov <ivan.oleynikov95@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--config/bindings.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/bindings.go b/config/bindings.go
index 4be37dea..8167cfe2 100644
--- a/config/bindings.go
+++ b/config/bindings.go
@@ -358,9 +358,9 @@ func init() {
keyNames["c-x"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlX, rune(tcell.KeyCAN)}
keyNames["c-y"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlY, 0} // TODO: runes for the rest
keyNames["c-z"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlZ, 0}
- keyNames["c-]"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlLeftSq, 0}
+ keyNames["c-]"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlRightSq, 0}
keyNames["c-\\"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlBackslash, 0}
- keyNames["c-["] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlRightSq, 0}
+ keyNames["c-["] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlLeftSq, 0}
keyNames["c-^"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlCarat, 0}
keyNames["c-_"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlUnderscore, 0}
keyNames["nul"] = KeyStroke{tcell.ModNone, tcell.KeyNUL, 0}