1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 08:38:10 +00:00

core/GUI: give the OK button focus if enabled

This commit is contained in:
Sotiri Bakagiannis 2020-09-04 10:05:59 +01:00
parent 8a9b59b1c8
commit a0de6a5921

View File

@ -626,7 +626,7 @@ export class GUI
{ {
if (this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL || (this._allResourcesDownloaded && this._setRequiredKeys.size >= this._requiredKeys.length)) if (this._psychoJS.getEnvironment() === ExperimentHandler.Environment.LOCAL || (this._allResourcesDownloaded && this._setRequiredKeys.size >= this._requiredKeys.length))
{ {
$("#buttonOk").button("option", "disabled", false); $("#buttonOk").button("option", "disabled", false).focus();
} }
else else
{ {