2bc41aeb8602
clipboard.rs
use super::VectorcraftApp;
impl VectorcraftApp {
/// Hand a queued text copy to egui. Called after `tick`, after the UI phase's input and at the
/// end of the pass; the later calls are what an input- or menu-driven fallback Copy needs, and
/// `take` keeps it single-shot. A Copy or Cut that labels left to the next pass hands its text
/// over as soon as it runs ([`crate::shortcuts::handle`]).
pub(crate) fn flush_clipboard_out(&mut self, ctx: &egui::Context) {
if let Some(t) = self.clipboard_out.take() {
ctx.copy_text(t);
}
}
}
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.