I have a trial where participants are asked to enter a string of text. Special characters are defined as in the chunk of code below.
My problem is that I can’t seem to enter capital letters. Does anyone know how to go about doing this?
shift_flag = False for key in event.getKeys(): if key in ['escape']: core.quit() elif key in ['return']: if len(captured_string) > 1: subject_response_finished=True final_response=captured_string continueRoutine=False elif key in ['delete','backspace']: captured_string = captured_string[:-1] elif key in ['space']: captured_string = captured_string+' ' elif key in ['period']: captured_string = captured_string+'.' else: captured_string = captured_string+key