mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Fix mouse click issues and add a new hotmovie plugin.
This commit is contained in:
@@ -47,6 +47,7 @@ namespace Wox
|
||||
InitializeComponent();
|
||||
progressBar.ToolTip = toolTip;
|
||||
InitialTray();
|
||||
resultCtrl.OnMouseClickItem += AcceptSelect;
|
||||
|
||||
ThreadPool.SetMaxThreads(30, 10);
|
||||
InitProgressbarAnimation();
|
||||
@@ -60,8 +61,6 @@ namespace Wox
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void SetHotkey(string hotkeyStr, EventHandler<HotkeyEventArgs> action)
|
||||
{
|
||||
var hotkey = new HotkeyModel(hotkeyStr);
|
||||
@@ -285,15 +284,14 @@ namespace Wox
|
||||
break;
|
||||
|
||||
case Key.Enter:
|
||||
AcceptSelect();
|
||||
AcceptSelect(resultCtrl.AcceptSelect());
|
||||
e.Handled = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void AcceptSelect()
|
||||
private void AcceptSelect(Result result)
|
||||
{
|
||||
Result result = resultCtrl.AcceptSelect();
|
||||
if (result != null)
|
||||
{
|
||||
if (result.Action != null)
|
||||
|
||||
Reference in New Issue
Block a user