MCPcopy Create free account
hub / github.com/VCVRack/Rack / onAction

Method onAction

src/ui/TextField.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10struct TextFieldCopyItem : ui::MenuItem {
11 WeakPtr<TextField> textField;
12 void onAction(const ActionEvent& e) override {
13 if (!textField)
14 return;
15 textField->copyClipboard();
16 APP->event->setSelectedWidget(textField);
17 }
18};
19
20

Callers

nothing calls this directly

Calls 2

setSelectedWidgetMethod · 0.80
copyClipboardMethod · 0.45

Tested by

no test coverage detected