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

Method onAction

src/ui/TextField.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43struct TextFieldSelectAllItem : ui::MenuItem {
44 WeakPtr<TextField> textField;
45 void onAction(const ActionEvent& e) override {
46 if (!textField)
47 return;
48 textField->selectAll();
49 APP->event->setSelectedWidget(textField);
50 }
51};
52
53

Callers

nothing calls this directly

Calls 2

setSelectedWidgetMethod · 0.80
selectAllMethod · 0.45

Tested by

no test coverage detected