summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/components/chat/editor.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-17 13:45:26 +0200
committerKujtim Hoxha <[email protected]>2025-04-21 13:42:02 +0200
commitc24e3c18e0177e2e059f622a63e87249c52db2d5 (patch)
tree51900cfe51292d61aa137ea03d43039aff627a71 /internal/tui/components/chat/editor.go
parentcaea29375994373f6027c8dc4d8aa536c4e135e7 (diff)
downloadopencode-c24e3c18e0177e2e059f622a63e87249c52db2d5.tar.gz
opencode-c24e3c18e0177e2e059f622a63e87249c52db2d5.zip
small improvements
Diffstat (limited to 'internal/tui/components/chat/editor.go')
-rw-r--r--internal/tui/components/chat/editor.go4
1 files changed, 3 insertions, 1 deletions
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
}