CreateGroupScreen: Set focus into group input field
Change-Id: I88097c8fa193126f23ff6371cf0254406114bd86 Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -74,6 +74,14 @@ public class CreateGroupScreen extends Screen {
|
|||||||
addCreateGroupPanel();
|
addCreateGroupPanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onShowView() {
|
||||||
|
super.onShowView();
|
||||||
|
if (addTxt != null) {
|
||||||
|
addTxt.setFocus(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void addCreateGroupPanel() {
|
private void addCreateGroupPanel() {
|
||||||
VerticalPanel addPanel = new VerticalPanel();
|
VerticalPanel addPanel = new VerticalPanel();
|
||||||
addPanel.setStyleName(Gerrit.RESOURCES.css().addSshKeyPanel());
|
addPanel.setStyleName(Gerrit.RESOURCES.css().addSshKeyPanel());
|
||||||
|
|||||||
Reference in New Issue
Block a user