Skip to content

Commit 3593514

Browse files
committed
feat: Focus WebViewControl automatically
1 parent a00921f commit 3593514

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Pages/WebViewPage.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ private async void WebViewControl_Loaded(object sender, RoutedEventArgs e)
4141
Frame.Navigate(typeof(WebViewErrorPage), new WebView2CreationError(ex.StackTrace), new DrillInNavigationTransitionInfo());
4242
}
4343
}
44+
WebViewControl.Focus(FocusState.Pointer);
4445
}
4546

4647
private async void WebViewControl_CoreWebView2Initialized(muxc.WebView2 sender, muxc.CoreWebView2InitializedEventArgs args)

0 commit comments

Comments
 (0)