fix(cmd): set input capture on (*application).Pages instead
This commit is contained in:
parent
cba89ee406
commit
81e4924c22
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue