Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Only: add option to open hyperlink in a new browser tab when using via eframe #3129

Closed
FreddyFunk opened this issue Jul 1, 2023 · 0 comments · Fixed by #3242
Closed

Comments

@FreddyFunk
Copy link
Contributor

It is currently impossible to open a hyperlink without leaving the current app when running a egui/eframe web app. This is because text is not selectable and right clicks on hyperlinks with an option to open in a new tab is currently not supported.

I would prefer the following two-part solution:

  1. When right clicking any hyperlink it shows the option to be opened in a new browser tab.
  2. egui:ui:Ui:hyperlink and egui:ui:Ui:hyperlink_to get an optional boolean parameter called open_in_new_tab. When this boolean is set to true, a normal left click opens the hyperlink in a new tab as well. This bool can be set to false by default to do not break any backwards compatibility. This boolen will also not affect egui when running on native OS, since hyperlinks are opened as a new tab anyway in this case.
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 a pull request may close this issue.

1 participant