Skip to content

Commit 5cb3fe6

Browse files
author
Yair Aichenbaum
committed
More shortcuts
1 parent fd57be7 commit 5cb3fe6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Files/ProHome.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
1515
x:Name="ProHomeInstance"
1616
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
17-
KeyUp="ProHomeInstance_KeyUp"
1817
Loaded="Page_Loaded"
1918
NavigationCacheMode="Disabled"
2019
mc:Ignorable="d">

Files/ProHome.xaml.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ public ProHome()
138138
{
139139
this.InitializeComponent();
140140
RibbonArea.VisiblePath.Text = "New tab";
141-
141+
142+
this.KeyUp += ProHomeInstance_KeyUp;
143+
142144
// Acrylic sidebar
143145
var localSettings = ApplicationData.Current.LocalSettings;
144146
if (localSettings.Values["acrylicSidebar"] != null && localSettings.Values["acrylicSidebar"].Equals(true))
@@ -311,6 +313,12 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
311313
case (false, false, false, true, VirtualKey.Enter):
312314
App.CurrentInstance.InteractionOperations.List_ItemClick(null, null);
313315
break;
316+
case (false, false, false, true, VirtualKey.Space):
317+
if ((App.CurrentInstance.ContentPage).IsQuickLookEnabled)
318+
{
319+
App.CurrentInstance.InteractionOperations.ToggleQuickLook();
320+
}
321+
break;
314322
};
315323

316324
if (App.CurrentInstance.CurrentPageType == typeof(PhotoAlbum))

0 commit comments

Comments
 (0)