Fix backspace on Windows

Fixes #1735
This commit is contained in:
Zachary Yedidia 2020-06-20 13:22:01 -04:00
parent fb258dd57a
commit bcc35c9f8c

View file

@ -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