In my experiment I use the editable TexBox (Beta) component to collect answers.
Offline, the text box gets auto-focus so that the test subjects don’t have to keep manually clicking in the box before typing in the answer.
Online, however, the text box does not get auto-focus. In each trial, the box must be manually clicked with the mouse before the answer can be typed and ‘Enter’ can be pressed to move on to the next trial.
Is this a bug in PsychoJS and does anyone have a solution to this problem?
I am using Builder, PsychoPy v2020.2.10 on macOS Catalina 10.15.7.
Is there anything else I have to do to make this work - like include some special library or something? Is that term _pixi part of the standard Python tools?
Thanks for any help - I really need to get this working.
(apologies for the caps - but this problem has been kicking my butt for AGES now…)
YAY!
Some more details - I figured out that the error I saw above was caused by my code being higher up in the list than the Textbox to which it referred. Also - I had to remove all the attempts at the _pixi approach for the ‘textbox.refresh’ thingo to work. BUT…
Hi,
I am trying to do something similar in javascript but I can’t find the right information.
I would like to show 5 textboxes at once. In each it is written “type here”. As soon the mouse hits the textbox, “type here” will disappear to have only the cursor available. I was able to make it in python but I am struggling to find the right function to do so in JavaScript.