Skip to content

only listen for Escape while it can close a menu - #896

Open
romanstingler wants to merge 1 commit into
MalpenZibo:mainfrom
romanstingler:fix/esc-key-subscription
Open

only listen for Escape while it can close a menu#896
romanstingler wants to merge 1 commit into
MalpenZibo:mainfrom
romanstingler:fix/esc-key-subscription

Conversation

@romanstingler

@romanstingler romanstingler commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

fix 1/X
related to #895

The Escape-key subscription was always active, even though it can only do
something when enable_esc_key is set and a menu is open. An idle
listen_with subscription is not free: iced copies every interaction event
into a fixed-size channel per subscription and warns when it overflows.

@github-actions github-actions Bot added the bug Something isn't working label Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant