4405: Textbox and keyboard conflict

Synopsis

As editable Textbox components and Keyboard components both listen for key presses, the two can often come into conflict and cause problems.

Details

As editable Textbox components and Keyboard components both listen for key presses, the two can often come into conflict and cause problems. For example, if a Keyboard component is listening for Enter to end the routine, what happens when the participant presses Enter to start a new line?

PsychoPy versions affected

> 2020.1.0

Solutions

In general, we recommend ending routines containing editable textboxes using a Button, Mouse or ROI component rather than Keyboard. If you are trying to gather keyboard responses as well as text input, consider splitting the two into separate routines to avoid conflicts.


Back to top