feat(chat): forward Tab to textarea when mentions list is hidden (#800)

This commit is contained in:
ayn2op 2026-05-27 15:57:38 -04:00 • committed by GitHub
parent a4464bb678
commit 19907d7889
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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))
}