fix(cmd): set input capture on (*application).Pages instead

This commit is contained in:
ayn2op 2025-10-19 20:57:39 -04:00
parent cba89ee406
commit 81e4924c22

View file

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