mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-05 21:46:49 -04:00
Mouse clicks on a view other than the focused popup panel are normally swallowed by the ShouldHandleMouseEvent gate, so a registered click handler can't run while a modal is up. Hyperlink clicks already dodge this by being handled in an earlier phase; generalize that to ordinary mouse bindings via a HandleWhenPopupPanelFocused flag, dispatched before the gate. No binding sets it yet, so behavior is unchanged. This is what lets a click on the main view stay live behind a popup (e.g. opening a diff line in the editor while the commit-message panel is in front), the way the wheel already scrolls it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>