Description of the problem:
I’m currently facing an issue with the Textbox component in PsychoPy where it seems to retain keys pressed in the previous routine. This issue occurs when I transition from one routine to another; the keys that were pressed in the first routine are somehow carried over to the next, affecting the input in the Textbox in the subsequent routine. For example, if the number ‘4’ was pressed in the previous routine, it automatically appears in the Textbox of the next routine without any key being pressed.
I have attempted to resolve this by adding a code component to the routine containing the Textbox. In the ‘Begin Routine’ section, I included the code textbox.text = ''
, hoping it would clear any previous inputs. Unfortunately, this approach hasn’t been effective.
Has anyone else encountered this problem? If so, how were you able to resolve it? Any suggestions on how to clear the key buffer or reset the Textbox state between routines would be greatly appreciated.
Thanks in advance for your help!
I am using Builder, PsychoPy 2022.2.5 on Win11.
Thanks for helping!