@@ -27,7 +27,7 @@ qx.Class.define("osparc.editor.FolderEditor", {
2727 const title = this . getChildControl ( "title" ) ;
2828 title . setRequired ( true ) ;
2929 manager . add ( title ) ;
30- newFolder ? this . getChildControl ( "create" ) : this . getChildControl ( "save" ) ;
30+ this . __doButton = newFolder ? this . getChildControl ( "create" ) : this . getChildControl ( "save" ) ;
3131
3232 this . addListener ( "appear" , this . __onAppear , this ) ;
3333 } ,
@@ -48,6 +48,8 @@ qx.Class.define("osparc.editor.FolderEditor", {
4848 } ,
4949
5050 members : {
51+ __doButton : null ,
52+
5153 _createChildControlImpl : function ( id ) {
5254 let control ;
5355 switch ( id ) {
@@ -69,6 +71,8 @@ qx.Class.define("osparc.editor.FolderEditor", {
6971 appearance : "form-button"
7072 } ) ;
7173 control . addListener ( "execute" , ( ) => {
74+ const title = this . getChildControl ( "title" ) ;
75+ title . blur ( ) ;
7276 if ( this . __validator . validate ( ) ) {
7377 control . setFetching ( true ) ;
7478 this . fireEvent ( "createFolder" ) ;
@@ -83,6 +87,8 @@ qx.Class.define("osparc.editor.FolderEditor", {
8387 appearance : "form-button"
8488 } ) ;
8589 control . addListener ( "execute" , ( ) => {
90+ const title = this . getChildControl ( "title" ) ;
91+ title . blur ( ) ;
8692 if ( this . __validator . validate ( ) ) {
8793 control . setFetching ( true ) ;
8894 this . fireEvent ( "updateFolder" ) ;
@@ -112,6 +118,9 @@ qx.Class.define("osparc.editor.FolderEditor", {
112118 const title = this . getChildControl ( "title" ) ;
113119 title . focus ( ) ;
114120 title . activate ( ) ;
121+
122+ const command = new qx . ui . command . Command ( "Enter" ) ;
123+ this . __doButton . setCommand ( command ) ;
115124 }
116125 }
117126} ) ;
0 commit comments