diff --git a/Flow.Launcher/MainWindow.xaml b/Flow.Launcher/MainWindow.xaml
index 17dccc893..545dba94f 100644
--- a/Flow.Launcher/MainWindow.xaml
+++ b/Flow.Launcher/MainWindow.xaml
@@ -237,7 +237,7 @@
+ Style="{DynamicResource SeparatorStyle}" Visibility="Visible" />
-
+
@@ -303,8 +303,8 @@
-
-
+
+
diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs
index 2b7db38cf..8adc788cc 100644
--- a/Flow.Launcher/MainWindow.xaml.cs
+++ b/Flow.Launcher/MainWindow.xaml.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.ComponentModel;
using System.Threading.Tasks;
using System.Windows;
@@ -531,12 +531,34 @@ namespace Flow.Launcher
}
}
break;
+ case Key.F2:
+ PreviewToggle();
+ e.Handled = true;
+ break;
+
default:
break;
}
}
+ public void PreviewToggle()
+ {
+
+ if (Preview.Visibility == Visibility.Collapsed)
+ {
+ ResultArea.SetValue(Grid.ColumnSpanProperty, 1);
+ //HotkeyArea.SetValue(Visibility, Visibility.Collapsed);
+ Preview.Visibility = Visibility.Visible;
+ }
+ else
+ {
+ ResultArea.SetValue(Grid.ColumnSpanProperty, 2);
+ //HotkeyArea.SetValue(Visibility, Visibility.Visible);
+ Preview.Visibility = Visibility.Collapsed;
+ }
+ }
+
private void MoveQueryTextToEnd()
{
// QueryTextBox seems to be update with a DispatcherPriority as low as ContextIdle.
@@ -556,4 +578,4 @@ namespace Flow.Launcher
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Flow.Launcher/ResultListBox.xaml b/Flow.Launcher/ResultListBox.xaml
index f7e820050..646a43eda 100644
--- a/Flow.Launcher/ResultListBox.xaml
+++ b/Flow.Launcher/ResultListBox.xaml
@@ -56,6 +56,7 @@
-
+
@@ -268,6 +282,22 @@
+