From 19907d7889d5cdc6e258ff0d17db61752222691a Mon Sep 17 00:00:00 2001 From: ayn2op Date: Wed, 27 May 2026 15:57:38 -0400 Subject: [PATCH] feat(chat): forward Tab to textarea when mentions list is hidden (#800) --- internal/ui/chat/message_input.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/ui/chat/message_input.go b/internal/ui/chat/message_input.go index 9c3bdbc..3f9ef3c 100644 --- a/internal/ui/chat/message_input.go +++ b/internal/ui/chat/message_input.go @@ -153,7 +153,10 @@ func (mi *messageInput) Update(msg tview.Msg) tview.Cmd { mi.reset() return nil case keybind.Matches(msg, mi.cfg.Keybinds.MessageInput.TabComplete.Keybind): - return mi.tabComplete() + if mi.chat.GetVisible(mentionsListLayerName) { + return mi.tabComplete() + } + return handler(msg) case keybind.Matches(msg, mi.cfg.Keybinds.MessageInput.Undo.Keybind): return handler(tcell.NewEventKey(tcell.KeyCtrlZ, "", tcell.ModNone)) }