From f4e68c109e8a078ede6a1ca2c5df83a90063a38e Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Sat, 27 May 2017 23:25:47 +0300 Subject: [PATCH] append to last commit: correct UI actions --- QuickLook/MainWindowTransparent.xaml.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/QuickLook/MainWindowTransparent.xaml.cs b/QuickLook/MainWindowTransparent.xaml.cs index 1cdb049..734ccd7 100644 --- a/QuickLook/MainWindowTransparent.xaml.cs +++ b/QuickLook/MainWindowTransparent.xaml.cs @@ -35,16 +35,11 @@ namespace QuickLook BlurWindow.EnableWindowBlur(this); }; - buttonCloseWindow.MouseLeftButtonUp += (sender, e) => BeginHide(); - - /*PreviewKeyUp += (sender, e) => - { - if (e.Key == Key.Enter) - OpenWithAssocApp(); - };*/ + buttonCloseWindow.MouseLeftButtonUp += (sender, e) => ViewWindowManager.GetInstance() + .InvokeRoutine(new KeyEventArgs(Keys.Escape)); buttonOpenWith.Click += (sender, e) => ViewWindowManager.GetInstance() - .InvokeRoutine(new KeyEventArgs(Keys.Escape)); + .InvokeRoutine(new KeyEventArgs(Keys.Enter)); } public ContextObject ContextObject { get; private set; }