Try to fix Excel focus issue

This commit is contained in:
Paddy Xu
2017-05-23 00:25:47 +03:00
parent 782a87e914
commit 58ce9769cd
2 changed files with 2 additions and 4 deletions

View File

@@ -36,8 +36,8 @@ namespace QuickLook.Plugin.IPreviewHandlers
_control.Open(file);
}), DispatcherPriority.Render);
//SetForegroundWindow(new WindowInteropHelper(context.ViewerWindow).Handle);
//SetActiveWindow(presenter.Handle);
SetForegroundWindow(new WindowInteropHelper(context.ViewerWindow).Handle);
SetActiveWindow(presenter.Handle);
}
[DllImport("user32.dll")]