Merge "Set focus to first input field on all panels"

This commit is contained in:
jenkins-bot 2023-01-04 19:17:52 +00:00 committed by Gerrit Code Review
commit 9bca2b9d36

View file

@ -1512,6 +1512,7 @@ Dialog.prototype.switchPanels = function ( panel ) {
this.addParamPanel.$element.hide();
this.editParamPanel.$element.show();
this.editMapsPanel.$element.hide();
this.editParamPanel.focus();
break;
case 'addParam':
this.actions.setMode( 'add' );
@ -1522,6 +1523,7 @@ Dialog.prototype.switchPanels = function ( panel ) {
this.languagePanel.$element.hide();
this.addParamPanel.$element.show();
this.editMapsPanel.$element.hide();
this.newParamInput.focus();
break;
case 'editMaps':
this.actions.setMode( 'maps' );
@ -1532,7 +1534,7 @@ Dialog.prototype.switchPanels = function ( panel ) {
this.languagePanel.$element.hide();
this.addParamPanel.$element.hide();
this.editMapsPanel.$element.show();
this.templateMapsInput.adjustSize( true );
this.templateMapsInput.adjustSize( true ).focus();
break;
case 'language':
this.actions.setMode( 'language' );