Skip to content

Commit

Permalink
Use app name in WtqHostkeyDefinedEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingpie committed Nov 25, 2024
1 parent 143b178 commit 5ef4f3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/10-Core/Wtq/Events/WtqHotkeyDefinedEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public sealed class WtqHotkeyDefinedEvent : WtqEvent
/// <summary>
/// The app with which the hotkey is associated. Can be null, for the "most recent app"-hotkey.
/// </summary>
public WtqApp? App { get; init; }
public WtqAppOptions? AppOptions { get; init; }

/// <summary>
/// The pressed key (Q, 1, F1, etc.).
Expand Down
1 change: 1 addition & 0 deletions src/10-Core/Wtq/Services/WtqHotkeyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private void SendRegisterEvents(WtqOptions opts)
_bus.Publish(
new WtqHotkeyDefinedEvent()
{
AppOptions = app,
Key = hk.Key,
Modifiers = hk.Modifiers,
});
Expand Down

0 comments on commit 5ef4f3a

Please sign in to comment.