feat: ctrl+left arrow / ctrl+right arrow key support (#969)

This commit is contained in:
Munawwar Firoz 2025-07-14 17:46:06 +05:30 committed by GitHub
parent 1f4de75348
commit 7b8b4cf8c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,11 +218,11 @@ func DefaultKeyMap() KeyMap {
key.WithHelp("left", "character backward"),
),
WordForward: key.NewBinding(
key.WithKeys("alt+right", "alt+f"),
key.WithKeys("alt+right", "ctrl+right", "alt+f"),
key.WithHelp("alt+right", "word forward"),
),
WordBackward: key.NewBinding(
key.WithKeys("alt+left", "alt+b"),
key.WithKeys("alt+left", "ctrl+left", "alt+b"),
key.WithHelp("alt+left", "word backward"),
),
LineNext: key.NewBinding(