The quitcommand attribute specifies a key combination that terminates the experiment.
<defaults>
Name | Type | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
commandkey | commandkeyenum |
|
||||||||||
character | string | The single or double quoted character of the key. |
The quitcommand allows the researcher to define a custom combination of keys that enable the participant to opt out of an experiment. The quitcommand can consist of a single or multiple keys. If multiple keys are specified, the participant must press all of the keys simultaneously. The participant may press the keys any time during the experiment, at which point the experiment ends.
The quitcommand is similar to Inquisit's built in Ctrl+Q command, with one major difference. When the Ctrl+Q command is issued, Inquisit Web will terminate the experiment and forward the participant to the finish page url. In contrast, if the quitcommand is issued, the participant is NOT forwarded the finish page. This is useful in cases where navigating to the finish page is used to distinguish participants who chose to complete the study from those who did not.
The quitcommand keys must be specified in terms of scancodes.
The following defines the quitcommand as the key combination Ctrl+Alt+30 (the scancode for the A key is 30):
<defaults>
/ quitcommand = (Ctrl+Alt+30)
</defaults>
The following defines the quitcommand as the key combination Win+T:
<defaults>
/ quitcommand = (Win+'T')
</defaults>