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

Method onDragDrop

src/ui/MenuItem.cpp:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79void MenuItem::onDragDrop(const DragDropEvent& e) {
80 if (e.origin == this && !disabled) {
81 int mods = APP->window->getMods();
82 doAction((mods & RACK_MOD_MASK) != RACK_MOD_CTRL);
83 }
84}
85
86void MenuItem::doAction(bool consume) {
87 widget::EventContext cAction;

Callers

nothing calls this directly

Calls 1

getModsMethod · 0.80

Tested by

no test coverage detected