Skip to content

Fix context-menu close #2068 - #2069

Merged
justvanrossum merged 3 commits into
fontra:mainfrom
giovanniTramonto:fix/#2068-context-menu
Mar 4, 2025
Merged

justvanrossum merged 3 commits into
fontra:mainfrom
giovanniTramonto:fix/#2068-context-menu

Conversation

@giovanniTramonto

Copy link
Copy Markdown
Contributor

Fixes #2068

@justvanrossum

Copy link
Copy Markdown
Member

This doesn't fix everything: repeated control-click still give multiple context menus.

@justvanrossum

Copy link
Copy Markdown
Member

Would it be better to revert #2060 first, and do a fresh attempt?

@giovanniTramonto

Copy link
Copy Markdown
Contributor Author

I added an util for custom events. The refactor in 4066770 does not necessarily belong to this fix, but seemed handy to do.

@giovanniTramonto

Copy link
Copy Markdown
Contributor Author

This doesn't fix everything: repeated control-click still give multiple context menus.

Should work now

@giovanniTramonto

Copy link
Copy Markdown
Contributor Author

Would it be better to revert #2060 first, and do a fresh attempt?

Sure. Feel free to revert

@justvanrossum

Copy link
Copy Markdown
Member

Thanks, I can confirm it works. I'll merge.

(Would be nice to use dispatchCustomEvent() in other places, too.)

@justvanrossum
justvanrossum merged commit 0e3cbd1 into fontra:main Mar 4, 2025
@giovanniTramonto
giovanniTramonto deleted the fix/#2068-context-menu branch March 4, 2025 08:38
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.

Context menu doesn't go away

2 participants