I am currently trying to run an experiment where I take in binary responses, where ‘z’ is yes and ‘/’ is no. This works fine when I am running it from the builder, however when I try to run it In my local browser, it cannot detect the ‘/’ key anymore.
I have a keyboard component with the allowed keys as “z” and “slash”.
Has anyone else encountered this issue?
Hi. What version of PsychoPy are you using? slash is fine in my demo but that’s still running in 2021.2.3
I’ve just updated my demo to 2023.2.3 and it still works so I suspect that slash works in intervening versions as well.
However, I only ever test PsychoJS by running on Pavlovia.
Hi, thanks for the reply!
When I use the key-check on Pavlovia, pressing ‘/’ shows up as N/A.
My PsychoPy version is 2023.2.2. Also, I’m using a Mac, and it may have something to do with that (?).
The characters recognised by Pavlovia may not be the characters on your keyboard. I would recommend using keys that are recognised by my key-check demo.
I think I got the fix… I replaced ‘slash’ by ‘N/A’ in the allowed characters, and its working fine now.
That’s interesting. I will probably switch the keys.
Thank you so much for your help.
N/A is my addition for keys that aren’t recognised by getKeys