* fix keyboard focus regression

This commit is contained in:
Reinhard Pointner 2015-11-15 14:45:40 +00:00
parent eefebe52ac
commit 816679e142
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ public class GettingStartedStage {
webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> { webview.getEngine().getLoadWorker().stateProperty().addListener((v, o, n) -> {
if (n == Worker.State.SUCCEEDED) { if (n == Worker.State.SUCCEEDED) {
stage.setTitle(webview.getEngine().getTitle()); stage.setTitle(webview.getEngine().getTitle());
stage.toFront();
webview.requestFocus();
} else if (n == Worker.State.FAILED) { } else if (n == Worker.State.FAILED) {
stage.close(); stage.close();
} }