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

Method onSelectKey

src/core/plugin.hpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133 }
134
135 void onSelectKey(const SelectKeyEvent& e) override {
136 if (e.action == GLFW_PRESS && (e.isKeyCommand(GLFW_KEY_ENTER) || e.isKeyCommand(GLFW_KEY_KP_ENTER))) {
137 DeselectEvent eDeselect;
138 onDeselect(eDeselect);
139 APP->event->selectedWidget = NULL;
140 e.consume(this);
141 }
142 }
143};
144
145

Callers

nothing calls this directly

Calls 2

isKeyCommandMethod · 0.80
consumeMethod · 0.80

Tested by

no test coverage detected