1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Hold down a modifier key when clicking a link to open it in a new tab

This commit is contained in:
Emil Ernerfeldt
2021-03-08 17:48:23 +01:00
parent c1ef81628b
commit 1c06622dbc
8 changed files with 69 additions and 15 deletions

View File

@@ -281,8 +281,8 @@ pub fn handle_output(
display: &glium::backend::glutin::Display,
clipboard: Option<&mut ClipboardContext>,
) {
if let Some(url) = output.open_url {
if let Err(err) = webbrowser::open(&url) {
if let Some(open) = output.open_url {
if let Err(err) = webbrowser::open(&open.url) {
eprintln!("Failed to open url: {}", err);
}
}