From b96326517d2f553838795b78d67210f50d0ecc63 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Thu, 20 Jan 2022 13:23:35 +0100 Subject: bindings: fix ctrl-h binding not working For some unknown reason. tcell does not include the ctrl modifier for the ctrl-h key event. Fixes: 7a6c808c042b ("bindings: prepare for more modifers") Fixes: https://todo.sr.ht/~rjarry/aerc/8 Signed-off-by: Robin Jarry --- config/bindings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/bindings.go') diff --git a/config/bindings.go b/config/bindings.go index 62956d7b..b704fa63 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -284,7 +284,7 @@ func init() { keyNames["c-e"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlE, 0} keyNames["c-f"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlF, 0} keyNames["c-g"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlG, 0} - keyNames["c-h"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlH, 0} + keyNames["c-h"] = KeyStroke{tcell.ModNone, tcell.KeyCtrlH, 0} keyNames["c-i"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlI, 0} keyNames["c-j"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlJ, 0} keyNames["c-k"] = KeyStroke{tcell.ModCtrl, tcell.KeyCtrlK, 0} -- cgit