CMD + Click Event for Sliders
-
Hey y'all,
is there a way to get a CMD + Click Event for a Slider control?I tried wrapping the Slider in a Panel and allow all Callbacks. However it seems like these events are not firing when you drag or click the slider inside the Panel, only when you click the Panel around the Slider.
I would like to be able to get a alternative effect when cmd / strg clicking on the Slider (Bypass effect).
-
@oskarsh Use a broadcaster
-
@d-healey Yes I just noticed that I can just use a Broadcaster and I got it working.
const var knobShortcutWatcher = Engine.createBroadcaster({ "id": "effectKnobsOnClickStatus", "args": ["component", "event"] }); knobShortcutWatcher.attachToComponentMouseEvents("sliderId", "Clicks Only", "Mouse Listener for Effect Controls"); knobShortcutWatcher.addListener("RefreshFunction", "Bypasses Effect",function(component, event) { if (event.cmdDown) { Console.print('CMD / STRG CLICK'); } });
-
-
-