mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-13 00:07:59 +02:00
Merge pull request #2104 from LiamKearn/feat-emacs-char-nav
This commit is contained in:
commit
1d40bd1707
@ -22,9 +22,9 @@ func (gui *Gui) handleEditorKeypress(textArea *gocui.TextArea, key gocui.Key, ch
|
|||||||
textArea.MoveCursorDown()
|
textArea.MoveCursorDown()
|
||||||
case key == gocui.KeyArrowUp:
|
case key == gocui.KeyArrowUp:
|
||||||
textArea.MoveCursorUp()
|
textArea.MoveCursorUp()
|
||||||
case key == gocui.KeyArrowLeft:
|
case key == gocui.KeyArrowLeft || key == gocui.KeyCtrlB:
|
||||||
textArea.MoveCursorLeft()
|
textArea.MoveCursorLeft()
|
||||||
case key == gocui.KeyArrowRight:
|
case key == gocui.KeyArrowRight || key == gocui.KeyCtrlF:
|
||||||
textArea.MoveCursorRight()
|
textArea.MoveCursorRight()
|
||||||
case key == newlineKey:
|
case key == newlineKey:
|
||||||
if allowMultiline {
|
if allowMultiline {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user