Has anyone had the issue using the keyboard where all of the buttons work except the caps lock button? I am trying to collect responses via caps lock, but the button is not responsive. I tried out the demo where it tells me which key I press and it returns ‘capslock’ but when I try to collect a response in my own task, it does not work. Thoughts?
to check - have you tried giving getKeys a keyList that includes capslock?
Also to check, I don’t suppose you are using a mac?
Looking at the keyNames in the keyboard class for mac it doesn’t look like ‘capslock’ is listed so that could be a problem (PsychoPy3\lib\site-packages\psychopy\hardware\keyboard.oy)
Aha! so, for future, in mac the path will be a little diff as it is under package contents (to look at package content on mac you can right click the app the view content I think, in there you are looking for a folder called hardware and the keyboard.py file contains the keyboard class)
@TParsons is this an issue on git? capslock is listed in the windows and linux keys but not mac
I’m not super familiar with Mac stuff, but I’m guessing the reason is that it has the same key code as LShift:
Not sure why it works like that, or how Mac OS differentiates between them, but I’ll look into it and whether it’s possible to differentiate between capslock and lshift in PsychoPy