Skip to content

Commit

Permalink
Update context.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Dec 31, 2024
1 parent 3ffe1ed commit 75bd222
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ impl Context {
/// HTTPS or localhost). If this method is used outside of a secure context, it will log an
/// error and do nothing. See <https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts>.
pub fn copy_text(&self, text: String) {
self.output_mut(|o| o.copied_text = text.clone());
self.send_cmd(crate::OutputCommand::CopyText(text));
}

Expand Down

0 comments on commit 75bd222

Please sign in to comment.