mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Add Context::open_url and Context::copy_text (#3380)
* Add Context::open_url * Add `Context::copy_text` * Fix doctest * Fix another doctest
This commit is contained in:
@@ -93,7 +93,7 @@ impl super::View for FontBook {
|
||||
};
|
||||
|
||||
if ui.add(button).on_hover_ui(tooltip_ui).clicked() {
|
||||
ui.output_mut(|o| o.copied_text = chr.to_string());
|
||||
ui.ctx().copy_text(chr.to_string());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user