Skip to content

Commit 349e785

Browse files
committed
Edge: Set focus after WebView2 initialization of runtime if necessary
Fixes #1640.
1 parent 2ece1af commit 349e785

File tree

1 file changed

+6
-0
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser

1 file changed

+6
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Edge.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,12 @@ void setupBrowser(int hr, long pv) {
695695
// initialized, nothing is drawn on the shell. We need browserResize to force
696696
// the shell to draw itself again.
697697
browserResize(new Event());
698+
699+
// Check whether the browser was made the focus control while we were
700+
// initializing the runtime and apply it accordingly.
701+
if (browser.isFocusControl()) {
702+
browserFocusIn(new Event());
703+
}
698704
}
699705

700706
void browserDispose(Event event) {

0 commit comments

Comments
 (0)