Skip to content

UI: Add HotkeyBlocker class - #9981

Closed
cg2121 wants to merge 1 commit into
obsproject:masterfrom
cg2121:hotkey-blocker
Closed

UI: Add HotkeyBlocker class#9981
cg2121 wants to merge 1 commit into
obsproject:masterfrom
cg2121:hotkey-blocker

Conversation

@cg2121

@cg2121 cg2121 commented Dec 10, 2023

Copy link
Copy Markdown
Contributor

Description

This adds a HotkeyBlocker class that is similar to SignalBlocker. It is used when selection dialogs are opened and because they are modal, hotkeys shouldn't be able to be used.

Motivation and Context

Simpler alternative to #8725

Fixes #7824

How Has This Been Tested?

Opened file dialog from image context bar widget and made sure hotkeys were disabled when browsing and re-enabled when it was closed.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@WizardCM WizardCM added the kind/bug Categorizes issue or PR as related to a bug. label Dec 10, 2023
@cg2121
cg2121 force-pushed the hotkey-blocker branch 3 times, most recently from d8e5455 to ad7f35f Compare December 10, 2023 03:55
@cg2121
cg2121 marked this pull request as draft December 10, 2023 11:23
@cg2121

cg2121 commented Dec 10, 2023

Copy link
Copy Markdown
Contributor Author

Converted to draft, as I need to figure out why it doesn't compile on Windows and macOS.

@cg2121

cg2121 commented Dec 11, 2023

Copy link
Copy Markdown
Contributor Author

#9989 should fix the compiling issue, so that one needs to be merged first.

This adds a HotkeyBlocker class that is similar to SignalBlocker.
It is used when selection dialogs are opened and because they are
modal, hotkeys shouldn't be able to be used.
@cg2121

cg2121 commented Aug 20, 2024

Copy link
Copy Markdown
Contributor Author

Found a way to accomplish this in #7924

@cg2121 cg2121 closed this Aug 20, 2024
@cg2121
cg2121 deleted the hotkey-blocker branch August 20, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OBS Crashes when switching scenes by hotkey and an Image source file dialog box is open

2 participants