Skip to content

feat: add setSuspended and isSuspended to globalShortcut#50777

Merged
VerteDinde merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-feat-add-setsuspended-and-issuspended-to-globalshortcut-1775568109779
Apr 8, 2026
Merged

feat: add setSuspended and isSuspended to globalShortcut#50777
VerteDinde merged 1 commit into
42-x-yfrom
trop/42-x-y-bp-feat-add-setsuspended-and-issuspended-to-globalshortcut-1775568109779

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented Apr 7, 2026

Backport of #50425

See that PR for details.

Notes: Added globalShortcut.setSuspended() and globalShortcut.isSuspended() methods to temporarily suspend and resume global shortcut handling.

Adds the ability to temporarily suspend and resume global shortcut
handling via `globalShortcut.setSuspended()` and query the current
state via `globalShortcut.isSuspended()`. When suspended, registered
shortcuts stop listening and new registrations are rejected. When
resumed, previously registered shortcuts are automatically restored.

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
@trop trop Bot requested review from a team and codebytere April 7, 2026 13:21
@trop trop Bot added 42-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Apr 7, 2026
Copy link
Copy Markdown
Member

@VerteDinde VerteDinde left a comment

Choose a reason for hiding this comment

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

Approved on behalf of @electron/wg-releases

@VerteDinde VerteDinde merged commit b31c3ef into 42-x-y Apr 8, 2026
129 of 132 checks passed
@VerteDinde VerteDinde deleted the trop/42-x-y-bp-feat-add-setsuspended-and-issuspended-to-globalshortcut-1775568109779 branch April 8, 2026 18:05
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented Apr 8, 2026

Release Notes Persisted

Added globalShortcut.setSuspended() and globalShortcut.isSuspended() methods to temporarily suspend and resume global shortcut handling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant