Use project to implement Windows global hotkey

https://github.com/2dust/GlobalHotKeys
This commit is contained in:
2dust
2025-02-27 20:12:07 +08:00
parent c0cd46a5aa
commit 84d72cd110
5 changed files with 13 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ using Avalonia.Input;
using Avalonia.ReactiveUI;
using Avalonia.Win32.Input;
using GlobalHotKeys;
using GlobalHotKeys.Native.Types;
namespace v2rayN.Desktop.Handler
{

View File

@@ -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>