Преглед изворни кода

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

ayn2op пре 1 месец
родитељ
комит
c8362d57f2
1 измењених фајлова са 1 додато и 1 уклоњено
  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() })