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

Method onAction

src/ui/TextField.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32struct TextFieldPasteItem : ui::MenuItem {
33 WeakPtr<TextField> textField;
34 void onAction(const ActionEvent& e) override {
35 if (!textField)
36 return;
37 textField->pasteClipboard();
38 APP->event->setSelectedWidget(textField);
39 }
40};
41
42

Callers

nothing calls this directly

Calls 2

pasteClipboardMethod · 0.80
setSelectedWidgetMethod · 0.80

Tested by

no test coverage detected