Skip to content

Commit 3468301

Browse files
committed
remove esc as back nav
1 parent 11a80f2 commit 3468301

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

WinUIGallery/ItemPage.xaml.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,6 @@ protected override async void OnNavigatedTo(NavigationEventArgs e)
104104
base.OnNavigatedTo(e);
105105
}
106106

107-
protected override void OnKeyDown(KeyRoutedEventArgs e)
108-
{
109-
if (e.Key == Windows.System.VirtualKey.Escape)
110-
{
111-
this.Item = null;
112-
if (this.contentFrame.CanGoBack)
113-
{
114-
this.contentFrame.GoBack();
115-
}
116-
else
117-
{
118-
NavigationRootPage.GetForElement(this).Navigate(typeof(AllControlsPage));
119-
}
120-
}
121-
}
122-
123107
protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
124108
{
125109
SetControlExamplesTheme(ThemeHelper.ActualTheme);

0 commit comments

Comments
 (0)