We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7c32fb commit 3f3b56eCopy full SHA for 3f3b56e
internal/tui/components/editor/editor.go
@@ -65,7 +65,7 @@ func (e *editor) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
65
return e, nil
66
case tea.KeyPressMsg:
67
switch msg.String() {
68
- case "ctrl+enter":
+ case "enter":
69
if !e.textarea.Focused() {
70
71
}
@@ -133,13 +133,9 @@ func (e *editor) IsFocused() bool {
133
// Bindings returns key bindings for the component
134
func (e *editor) Bindings() []key.Binding {
135
return []key.Binding{
136
- key.NewBinding(
137
- key.WithKeys("ctrl+enter"),
138
- key.WithHelp("ctrl+enter", "send"),
139
- ),
140
key.NewBinding(
141
key.WithKeys("enter"),
142
- key.WithHelp("enter", "new line"),
+ key.WithHelp("enter", "send"),
143
),
144
145
0 commit comments