Skip to content

Add an optional ShouldHandleMouseEvent hook#100

Merged
stefanhaller merged 2 commits intomasterfrom
disable-clicks-in-inactive-views-behind-popups
Mar 8, 2026
Merged

Add an optional ShouldHandleMouseEvent hook#100
stefanhaller merged 2 commits intomasterfrom
disable-clicks-in-inactive-views-behind-popups

Conversation

@stefanhaller
Copy link
Copy Markdown
Collaborator

This allows clients to reject clicks, which can be useful for disabling
background views while a modal panel is open. Doing this client-side in a
keybinding handler would not be enough, because it would still set the cursor
position in the clicked view, and it would still handle clicks on tab headers.

This shouldn't make a difference right now, but it makes it possible to disable
switching tabs when a modal panel is open, but still handle clicks on hyperlinks
in inactive views behind the panel, which is useful.
This allows clients to reject clicks, which can be useful for disabling
background views while a modal panel is open. Doing this client-side in a
keybinding handler would not be enough, because it would still set the cursor
position in the clicked view, and it would still handle clicks on tab headers.
@stefanhaller stefanhaller merged commit 5e45e57 into master Mar 8, 2026
1 check passed
@stefanhaller stefanhaller deleted the disable-clicks-in-inactive-views-behind-popups branch March 8, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant