Browse Source

fix(ui/chat): return mentions list command when popup is open (#774)

ayn2op 1 tháng trước cách đây
mục cha
commit
c8362d57f2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      internal/ui/chat/message_input.go

+ 1 - 1
internal/ui/chat/message_input.go

@@ -169,7 +169,7 @@ func (mi *messageInput) HandleEvent(event tview.Event) tview.Command {
 
 		if mi.cfg.AutocompleteLimit > 0 {
 			if mi.chat.GetVisible(mentionsListLayerName) {
-				mi.mentionsList.HandleEvent(event)
+				return mi.mentionsList.HandleEvent(event)
 			}
 
 			go mi.chat.app.QueueUpdateDraw(func() { mi.tabSuggestion() })