Skip to content

Commit

Permalink
Elaborate docstring for new Clipboard Viewport commands
Browse files Browse the repository at this point in the history
  • Loading branch information
bu5hm4nn committed Mar 26, 2024
1 parent 5a20351 commit 92a21f8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/egui/src/viewport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,16 @@ pub enum ViewportCommand {
/// The results are returned in `crate::Event::Screenshot`.
Screenshot,

/// Request a cut from the clipboard
/// Request cut of the current selection
/// this is equivalent to the system keyboard shortcut for cut (e.g. CTRL + X)
RequestCut,

/// Request a copy from the clipboard
/// Request a copy of the current selection
/// this is equivalent to the system keyboard shortcut for copy (e.g. CTRL + C)
RequestCopy,

/// Request a paste from the clipboard
/// Request a paste from the clipboard to the current focused TextEdit if any
/// this is equivalent to the system keyboard shortcut for paste (e.g. CTRL + V)
RequestPaste,
}

Expand Down

0 comments on commit 92a21f8

Please sign in to comment.