mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 20:27:36 +02:00
Add modifier key support when user action items.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using Wox.Helper;
|
||||
using Wox.Plugin;
|
||||
|
||||
namespace Wox
|
||||
@@ -212,7 +213,10 @@ namespace Wox
|
||||
{
|
||||
if (resultItemControl.Result.Action != null)
|
||||
{
|
||||
resultItemControl.Result.Action();
|
||||
resultItemControl.Result.Action(new ActionContext()
|
||||
{
|
||||
SpecialKeyState = new KeyboardListener().CheckModifiers()
|
||||
});
|
||||
}
|
||||
|
||||
return resultItemControl.Result;
|
||||
|
||||
Reference in New Issue
Block a user