From c24e3c18e0177e2e059f622a63e87249c52db2d5 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Thu, 17 Apr 2025 13:45:26 +0200 Subject: small improvements --- internal/tui/components/chat/editor.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/tui/components/chat/editor.go') diff --git a/internal/tui/components/chat/editor.go b/internal/tui/components/chat/editor.go index 4d6ef5ca0..ded0639bb 100644 --- a/internal/tui/components/chat/editor.go +++ b/internal/tui/components/chat/editor.go @@ -118,12 +118,14 @@ func (m *editorCmp) GetSize() (int, int) { } func (m *editorCmp) BindingKeys() []key.Binding { - bindings := layout.KeyMapToSlice(m.textarea.KeyMap) + bindings := []key.Binding{} if m.textarea.Focused() { bindings = append(bindings, layout.KeyMapToSlice(focusedKeyMaps)...) } else { bindings = append(bindings, layout.KeyMapToSlice(bluredKeyMaps)...) } + + bindings = append(bindings, layout.KeyMapToSlice(m.textarea.KeyMap)...) return bindings } -- cgit v1.2.3