Add focus logic to the tabbed panel (#5649)

* add focus logic to the tabbed panel

* change enter to be on key up

* fix  tests
This commit is contained in:
Anthony Dresser
2019-05-28 12:44:22 -07:00
committed by GitHub
parent d386311e54
commit f8ccafd2af
13 changed files with 62 additions and 15 deletions

View File

@@ -163,7 +163,8 @@ export class ConnectionDialogWidget extends Modal {
render: c => {
c.append(recentConnectionTab);
},
layout: () => { }
layout: () => { },
focus: () => this._recentConnectionTree.domFocus()
}
});
@@ -174,7 +175,8 @@ export class ConnectionDialogWidget extends Modal {
layout: () => { },
render: c => {
c.append(savedConnectionTab);
}
},
focus: () => this._savedConnectionTree.domFocus()
}
});