Skip to content

Commit

Permalink
Add CTRL-C shortcut to copy code
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Feb 18, 2023
1 parent e010936 commit 84a3b49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/send.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ fn show_transmit_code(ui: &mut Ui, code: &Code, send_request: &SendRequest) {
.button("📋 Copy")
.on_hover_text("Click to copy")
.clicked()
|| ui.input_mut(|input| input.consume_key(Modifiers::COMMAND, Key::C))
{
ui.output_mut(|output| output.copied_text = code.0.clone());
}
Expand Down

0 comments on commit 84a3b49

Please sign in to comment.