Use project to implement Windows global hotkey
https://github.com/2dust/GlobalHotKeys
This commit is contained in:
@@ -3,7 +3,6 @@ using Avalonia.Input;
|
||||
using Avalonia.ReactiveUI;
|
||||
using Avalonia.Win32.Input;
|
||||
using GlobalHotKeys;
|
||||
using GlobalHotKeys.Native.Types;
|
||||
|
||||
namespace v2rayN.Desktop.Handler
|
||||
{
|
||||
|
||||
@@ -26,12 +26,12 @@
|
||||
<PackageReference Include="ReactiveUI.Fody">
|
||||
<TreatAsUsed>true</TreatAsUsed>
|
||||
</PackageReference>
|
||||
<PackageReference Include="GlobalHotKeys.Windows" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectCapability Include="Avalonia" />
|
||||
<AvaloniaResource Include="Assets\**" />
|
||||
<ProjectReference Include="..\GlobalHotKeys\src\GlobalHotKeys\GlobalHotKeys.csproj" />
|
||||
<ProjectReference Include="..\ServiceLib\ServiceLib.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user