Skip to content

Commit

Permalink
feat: add ctrl+right and ctrl+left to perform WordBackward and WordFo…
Browse files Browse the repository at this point in the history
…rward actions (#387)
  • Loading branch information
maaslalani committed Mar 4, 2024
1 parent 6c9e52a commit 8a6f531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions textinput/textinput.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ type KeyMap struct {
var DefaultKeyMap = KeyMap{
CharacterForward: key.NewBinding(key.WithKeys("right", "ctrl+f")),
CharacterBackward: key.NewBinding(key.WithKeys("left", "ctrl+b")),
WordForward: key.NewBinding(key.WithKeys("alt+right", "alt+f")),
WordBackward: key.NewBinding(key.WithKeys("alt+left", "alt+b")),
WordForward: key.NewBinding(key.WithKeys("alt+right", "ctrl+right", "alt+f")),
WordBackward: key.NewBinding(key.WithKeys("alt+left", "ctrl+left", "alt+b")),
DeleteWordBackward: key.NewBinding(key.WithKeys("alt+backspace", "ctrl+w")),
DeleteWordForward: key.NewBinding(key.WithKeys("alt+delete", "alt+d")),
DeleteAfterCursor: key.NewBinding(key.WithKeys("ctrl+k")),
Expand Down

0 comments on commit 8a6f531

Please sign in to comment.