From dadc5ffede3befd21aafabc493b54c85207fe030 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 1 May 2026 08:00:35 +0200 Subject: [PATCH] Fix regressions with alternate edit bindings for backspace and move-cursor-right These have alternate keys ( for backspace, and for move-cursor-right). Both of these broke with commit 22169e22ffc46c5; the first because it was accidentally omitted, the second because of a stupid copy/paste mistake. --- pkg/gocui/edit.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/gocui/edit.go b/pkg/gocui/edit.go index 3b6c15677..76823364e 100644 --- a/pkg/gocui/edit.go +++ b/pkg/gocui/edit.go @@ -38,7 +38,8 @@ func SimpleEditor(v *View, key Key) bool { case key.Equals(forwardDeleteWordKeybinding), key.Equals(NewKeyStrMod("d", ModAlt)): v.TextArea.ForwardDeleteWord() - case key.Equals(NewKeyName(KeyBackspace)): + case key.Equals(NewKeyName(KeyBackspace)), + key.Equals(NewKeyStrMod("h", ModCtrl)): v.TextArea.BackSpaceChar() case key.Equals(NewKeyStrMod("d", ModCtrl)), key.Equals(NewKeyName(KeyDelete)): @@ -57,7 +58,7 @@ func SimpleEditor(v *View, key Key) bool { key.Equals(moveWordRightKeybinding): v.TextArea.MoveRightWord() case key.Equals(NewKeyName(KeyArrowRight)), - key.Equals(NewKeyStrMod("b", ModCtrl)): + key.Equals(NewKeyStrMod("f", ModCtrl)): v.TextArea.MoveCursorRight() case key.Equals(NewKeyName(KeyEnter)): v.TextArea.TypeCharacter("\n")