From fd7201f8ed76cb82746519e139188e5c9682ea74 Mon Sep 17 00:00:00 2001 From: "m@yim.jp" Date: Mon, 2 Feb 2026 23:34:51 +0000 Subject: [PATCH] fix(app): route keys to view when filter input is active (#158) Global keybindings (quit, help, region, etc.) intercepted keypresses before views could handle them in filter mode, causing 'q' to quit instead of typing into filter. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- internal/app/app.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/app/app.go b/internal/app/app.go index 8cacbac..5e7e5c3 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -298,6 +298,14 @@ func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return a, nil } + if ic, ok := a.currentView.(view.InputCapture); ok && ic.HasActiveInput() { + model, cmd := a.currentView.Update(msg) + if v, ok := model.(view.View); ok { + a.currentView = v + } + return a, cmd + } + switch { case key.Matches(msg, a.keys.Quit): switch a.currentView.(type) {