summary refs log tree commit diff stats
path: root/config/bindings.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-24 12:45:48 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-24 12:45:48 -0400
commitc4c8648cc716d40f5f6558b5f2bf375d8f9a36d9 (patch)
tree3ef1b6791d84d7b2e2c1ed93fe6bf4a40e7e2a89 /config/bindings.go
parent10a3d9d2095efe0fa89c40314d76af328b9b0c31 (diff)
downloadaerc-c4c8648cc716d40f5f6558b5f2bf375d8f9a36d9.tar.gz
Change ex command to C-x when using terminal
Diffstat (limited to 'config/bindings.go')
-rw-r--r--config/bindings.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/bindings.go b/config/bindings.go
index a9a57c5..e74624c 100644
--- a/config/bindings.go
+++ b/config/bindings.go
@@ -266,8 +266,8 @@ func init() {
 	keyNames["c-u"] = KeyStroke{tcell.KeyCtrlU, 0}
 	keyNames["c-v"] = KeyStroke{tcell.KeyCtrlV, 0}
 	keyNames["c-w"] = KeyStroke{tcell.KeyCtrlW, 0}
-	keyNames["c-x"] = KeyStroke{tcell.KeyCtrlX, 0}
-	keyNames["c-y"] = KeyStroke{tcell.KeyCtrlY, 0}
+	keyNames["c-x"] = KeyStroke{tcell.KeyCtrlX, rune(tcell.KeyCAN)}
+	keyNames["c-y"] = KeyStroke{tcell.KeyCtrlY, 0} // TODO: runes for the rest
 	keyNames["c-z"] = KeyStroke{tcell.KeyCtrlZ, 0}
 	keyNames["c-]"] = KeyStroke{tcell.KeyCtrlLeftSq, 0}
 	keyNames["c-\\"] = KeyStroke{tcell.KeyCtrlBackslash, 0}