| 77 | } |
| 78 | |
| 79 | void 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 | |
| 86 | void MenuItem::doAction(bool consume) { |
| 87 | widget::EventContext cAction; |