Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func SimpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
case (key == KeyBackspace || key == KeyBackspace2) && (mod&ModAlt) != 0,
key == KeyCtrlW:
v.TextArea.BackSpaceWord()
case key == KeyBackspace || key == KeyBackspace2:
case key == KeyBackspace || key == KeyBackspace2 || key == KeyCtrlH:
v.TextArea.BackSpaceChar()
case key == KeyCtrlD || key == KeyDelete:
v.TextArea.DeleteChar()
Expand All @@ -38,11 +38,11 @@ func SimpleEditor(v *View, key Key, ch rune, mod Modifier) bool {
v.TextArea.MoveCursorUp()
case (key == KeyArrowLeft || ch == 'b') && (mod&ModAlt) != 0:
v.TextArea.MoveLeftWord()
case key == KeyArrowLeft:
case key == KeyArrowLeft || key == KeyCtrlB:
v.TextArea.MoveCursorLeft()
case (key == KeyArrowRight || ch == 'f') && (mod&ModAlt) != 0:
v.TextArea.MoveRightWord()
case key == KeyArrowRight:
case key == KeyArrowRight || key == KeyCtrlF:
v.TextArea.MoveCursorRight()
case key == KeyEnter:
v.TextArea.TypeCharacter("\n")
Expand Down