Skip to content

Gtk: Filter keys through an input context only when needed - #3128

Merged
cwensley merged 1 commit into
picoe:developfrom
keysharp-org:upstream/gtk-input-context
Oct 27, 2026
Merged

cwensley merged 1 commit into
picoe:developfrom
keysharp-org:upstream/gtk-input-context

Conversation

@Descolada

@Descolada Descolada commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Controls listening only to KeyDown currently create and filter an auxiliary input context even when no Eto text-input consumer exists. Native text widgets already handle their own text input.

Reuse the existing focus-in condition for key filtering: only TextInput consumers or Drawable composition need the auxiliary context. Preserve lazy creation when TextInput is attached after the control has focus.

Reuse the focus-in condition when filtering key presses, so key-only
handlers do not create an auxiliary context. Keep the existing TextInput
and Drawable composition paths, including lazy creation after focus.
@Descolada
Descolada marked this pull request as ready for review October 27, 2026 10:58
@cwensley cwensley added this to the 2.14.0 milestone Oct 27, 2026
@cwensley
cwensley merged commit 54614f9 into picoe:develop Oct 27, 2026
4 checks passed
@cwensley

Copy link
Copy Markdown
Member

Looks good! Thanks!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants