This solves the problem that people trying to
"go install github.com/jesseduffield/lazygit@latest" would get the error
go: github.com/jesseduffield/lazygit@latest (in github.com/jesseduffield/lazygit@v0.40.0):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
I decided to make this a global handler that can be set only once. Alternatively
we could consider dispatching focus events to the focused view similar to how we
do with key bindings; but then we'd need a way to dispatch it to parent views
that might also be interested. Since we don't need this functionality (yet?) I
went with the simplest solution for now.