diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-09-24 10:08:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-24 10:08:13 -0700 |
commit | 1d40bd1707d2283d9007da983b2d47751c55129b (patch) | |
tree | e1f84074b5504d82dc4a8f22af2799b5a9f67977 | |
parent | fd66499c8faddc98ee9985f9b5e7e50320617410 (diff) | |
parent | 6422b399e73967f012c29b05c9a26fc9e852711a (diff) |
Merge pull request #2104 from LiamKearn/feat-emacs-char-nav
-rw-r--r-- | pkg/gui/editors.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/editors.go b/pkg/gui/editors.go index 2fd606a3b..20223d117 100644 --- a/pkg/gui/editors.go +++ b/pkg/gui/editors.go @@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch textArea.MoveCursorDown() case key == gocui.KeyArrowUp: textArea.MoveCursorUp() - case key == gocui.KeyArrowLeft: + case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB: textArea.MoveCursorLeft() - case key == gocui.KeyArrowRight: + case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF: textArea.MoveCursorRight() case key == newlineKey: if allowMultiline { |