I am wondering if anyone can help with a code snippet for controlling the slider with the keyboard?
I have tried using the following code:
arrowKeys = event.getKeys(keyList=[‘left’,‘right’])
if 'left' in arrowKeys: slider.markerPos -= 1 if 'right' in arrowKeys: slider.markerPos += 1
But when I run the experiment it says the event is undefined. Does anyone have a simple way to control the marker on the slider using the keyboard?
Many thanks for your help!