mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Add modifier key support when user action items.
This commit is contained in:
15
Wox.Plugin/ActionContext.cs
Normal file
15
Wox.Plugin/ActionContext.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace Wox.Plugin
|
||||
{
|
||||
public class ActionContext
|
||||
{
|
||||
public SpecialKeyState SpecialKeyState { get; set; }
|
||||
}
|
||||
|
||||
public class SpecialKeyState
|
||||
{
|
||||
public bool CtrlPressed { get; set; }
|
||||
public bool ShiftPressed { get; set; }
|
||||
public bool AltPressed { get; set; }
|
||||
public bool WinPressed { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ namespace Wox.Plugin
|
||||
public string Title { get; set; }
|
||||
public string SubTitle { get; set; }
|
||||
public string IcoPath { get; set; }
|
||||
public Action Action { get; set; }
|
||||
public Action<ActionContext> Action { get; set; }
|
||||
public int Score { get; set; }
|
||||
|
||||
public bool DontHideWoxAfterSelect { get; set; }
|
||||
@@ -24,13 +24,9 @@ namespace Wox.Plugin
|
||||
/// Only resulsts that originQuery match with curren query will be displayed in the panel
|
||||
/// </summary>
|
||||
public Query OriginQuery { get; set; }
|
||||
/// <summary>
|
||||
/// context results connected with current reuslt, usually, it can use <- or -> navigate context results
|
||||
/// </summary>
|
||||
public List<Result> ContextResults { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// you don't need to set this property if you are developing a plugin
|
||||
/// Don't set this property if you are developing a plugin
|
||||
/// </summary>
|
||||
public string PluginDirectory { get; set; }
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="AllowedLanguage.cs" />
|
||||
<Compile Include="IPlugin.cs" />
|
||||
<Compile Include="Plugin.cs" />
|
||||
<Compile Include="PluginPair.cs" />
|
||||
<Compile Include="PluginInitContext.cs" />
|
||||
<Compile Include="PluginMetadata.cs" />
|
||||
<Compile Include="PluginType.cs" />
|
||||
@@ -67,6 +67,7 @@
|
||||
<Compile Include="PythonResult.cs" />
|
||||
<Compile Include="Query.cs" />
|
||||
<Compile Include="Result.cs" />
|
||||
<Compile Include="ActionContext.cs" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
|
||||
Reference in New Issue
Block a user