OpenSesame icon indicating copy to clipboard operation
OpenSesame copied to clipboard

Add allowed keys for keypress in sketchpad items

Open dschreij opened this issue 6 years ago • 1 comments

I have experienced several occasions now where one would like to limit the allowed keys to which a sketchpad listens. Currently, with duration: keypress all keys make the experiment move on, but in some situations you want to let the experiment only progress by pressing a specific key.

Right now this can be solved by adding a sketchpad with duration 0 to the timeline, immediately followed by a keyboard_response item which has a limited set of allowed keys, but this is kind of 'verbose' if you need to do this multiple times (i.e. it clutters the tree with many items).

Do you think it is worth the effort to also add an allowed keys field tothe sketchpad item?

dschreij avatar Aug 01 '19 09:08 dschreij

Yes, I think. I already botched plenty of experiments because I wanted to adjust page zoom, or anyway mispressed some random key, and I went 3 blocks ahead without even realizing what the instructions where. (and you can't run the thing again if you quit)

In fact, I have seen situations where the researcher was claiming the only allowed button was "space", even though it actually wasn't.

mirh avatar Apr 24 '21 09:04 mirh