From bcc35c9f8cc1f752fbdde2f757efc8c7f958c795 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sat, 20 Jun 2020 13:22:01 -0400 Subject: [PATCH] Fix backspace on Windows Fixes #1735 --- internal/action/bindings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/action/bindings.go b/internal/action/bindings.go index fd57eb9c..c1999305 100644 --- a/internal/action/bindings.go +++ b/internal/action/bindings.go @@ -82,7 +82,7 @@ modSearch: case strings.HasPrefix(k, "-"): // We optionally support dashes between modifiers k = k[1:] - case strings.HasPrefix(k, "Ctrl") && k != "CtrlH": + case strings.HasPrefix(k, "Ctrl") && k != "Ctrl-h" && k != "CtrlH" && k != "Ctrlh": // CtrlH technically does not have a 'Ctrl' modifier because it is really backspace k = k[4:] modifiers |= tcell.ModCtrl