Add drop event.

This commit is contained in:
qianlifeng
2015-02-03 18:32:16 +08:00
parent 38948053cc
commit 5d9a94466a
8 changed files with 30 additions and 25 deletions

View File

@@ -23,6 +23,7 @@ namespace Wox.Plugin.Folder
{
this.context = context;
this.context.API.BackKeyDownEvent += ApiBackKeyDownEvent;
this.context.API.ResultItemDropEvent += API_ResultItemDropEvent;
InitialDriverList();
if (FolderStorage.Instance.FolderLinks == null)
{
@@ -31,6 +32,11 @@ namespace Wox.Plugin.Folder
}
}
void API_ResultItemDropEvent(Result result, IDataObject dropObject,DragEventArgs e)
{
e.Handled = true;
}
private void ApiBackKeyDownEvent(WoxKeyDownEventArgs e)
{
string query = e.Query;

View File

@@ -115,9 +115,9 @@ namespace Wox.Plugin.Program
}
}
void API_ResultItemDropEvent(Result result, IDataObject dropObject)
void API_ResultItemDropEvent(Result result, IDataObject dropObject, DragEventArgs args)
{
args.Handled = true;
}
public static void IndexPrograms()