Skip to content

Conversation

@GeneralGDA
Copy link
Contributor

Unregistering the shortcut when main window loses focus.

Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
@GeneralGDA GeneralGDA requested a review from Copilot September 23, 2025 15:32
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13762

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the Ctrl+W hotkey handling so it only works when the main window is focused, preventing background interference. The change moves global shortcut registration from application startup to window focus events.

  • Moves global shortcut registration from app startup to window focus/blur events
  • Adds proper cleanup of global shortcuts when the window loses focus or app quits
  • Extracts the hotkey constant to a shared location for better maintainability

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

aonnikov
aonnikov previously approved these changes Sep 23, 2025
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
@haiodo haiodo merged commit 67bf7af into develop Sep 23, 2025
15 checks passed
@haiodo haiodo deleted the fix-desktop-app-ctrl-w-shortcut branch September 23, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants