From 81e4924c22f0f9359ffa4cb482c9069998b70f1b Mon Sep 17 00:00:00 2001 From: ayn2op Date: Sun, 19 Oct 2025 20:57:39 -0400 Subject: [PATCH] fix(cmd): set input capture on (*application).Pages instead --- cmd/application.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/application.go b/cmd/application.go index 7cd5257..21e8152 100644 --- a/cmd/application.go +++ b/cmd/application.go @@ -42,7 +42,7 @@ func newApplication(cfg *config.Config) *application { messageInput: newMessageInput(cfg), } - app.flex.SetInputCapture(app.onFlexInputCapture) + app.pages.SetInputCapture(app.onPagesInputCapture) app. EnableMouse(cfg.Mouse). SetInputCapture(app.onInputCapture) @@ -121,7 +121,7 @@ func (a *application) toggleGuildsTree() { } } -func (a *application) onFlexInputCapture(event *tcell.EventKey) *tcell.EventKey { +func (a *application) onPagesInputCapture(event *tcell.EventKey) *tcell.EventKey { switch event.Name() { case a.cfg.Keys.FocusGuildsTree: a.messageInput.removeMentionsList()