Skip to content

fix: application opened twice when hotkey gets pressed#531

Merged
RainyNight9 merged 1 commit intomainfrom
fix/duplicate_open_windows_linux
May 19, 2025
Merged

fix: application opened twice when hotkey gets pressed#531
RainyNight9 merged 1 commit intomainfrom
fix/duplicate_open_windows_linux

Conversation

@SteveLauC
Copy link
Copy Markdown
Member

What does this PR do

Fix issue where pressing an application hotkey opens two application windows.

When an application hotkey is pressed, the handler is triggered twice: once with event ShortcutState::Pressed, and once with event ShortcutState::Released. This PR fixes the issue by ensuring the application is only opened when the event is ShortcutState::Pressed.

Rationale for this change

Standards checklist

  • The PR title is descriptive
  • The commit messages are semantic
  • Necessary tests are added
  • Updated the release notes
  • Necessary documents have been added if this is a new feature
  • Performance tests checked, no obvious performance degradation

@SteveLauC SteveLauC changed the title fix: app hotkey hanlder invoked twice (key pressed and released) fix: application opened twice when hotkey gets pressed May 19, 2025
@RainyNight9 RainyNight9 merged commit 5044a98 into main May 19, 2025
@RainyNight9 RainyNight9 deleted the fix/duplicate_open_windows_linux branch May 19, 2025 10:40
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.

2 participants