Skip to content

Commit

Permalink
New theme / new language now focus the name input field on display
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Mar 30, 2019
1 parent 9e8c4f8 commit 50c9491
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/me/coley/j2h/Java2Html.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ private void updateLanguageMenu() {
}
return null;
});
Platform.runLater(() -> txtName.requestFocus());
Optional<String> result = dialog.showAndWait();
if(result.isPresent()) {
Language language = new Language(result.get());
Expand Down Expand Up @@ -378,6 +379,7 @@ private void updateThemeMenu() {
}
return null;
});
Platform.runLater(() -> txtName.requestFocus());
Optional<String> result = dialog.showAndWait();
if(result.isPresent()) {
Theme theme = new Theme();
Expand Down

0 comments on commit 50c9491

Please sign in to comment.