Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple windows in WinUI 3 cannot register hotkeys with the same hotkey ID. #10073

Open
GochenRyan opened this issue Oct 16, 2024 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@GochenRyan
Copy link

Describe the bug

I want to call RegisterHotKey to register global hotkeys for different windows, but when the hotkey IDs are the same, the registration fails.

Steps to reproduce the bug

  1. Clone https://github.com/GochenRyan/WinUISample.git
  2. Checkout commit fe334cce48856a6dd842a9448098d746d09f649e
  3. Set Hotkeys as startup project
  4. Insert a break point at https://github.com/GochenRyan/WinUISample/blob/fe334cce48856a6dd842a9448098d746d09f649e/WinUISample/Hotkeys/GlobalHotkeyManager.cs#L43
  5. Upon running the application and clicking the 'Create new window' button, the attempt to register the hotkey will fail.

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002

Windows version

Windows Insider Build (xxxxx)

Additional context

No response

@GochenRyan GochenRyan added the bug Something isn't working label Oct 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant