improve ENTER key handle

This commit is contained in:
Paddy Xu
2017-05-27 19:37:18 +03:00
parent 16f20dc79d
commit 6471125a0b
3 changed files with 23 additions and 13 deletions

View File

@@ -42,12 +42,12 @@ namespace QuickLook
OpenWithAssocApp();
};*/
buttonOpenWith.Click += (sender, e) => OpenWithAssocApp();
buttonOpenWith.Click += (sender, e) => RunAndClose();
}
public ContextObject ContextObject { get; private set; }
internal void OpenWithAssocApp()
internal void RunAndClose()
{
if (string.IsNullOrEmpty(_path))
return;