Skip to content

Conversation

@dhardy
Copy link
Collaborator

@dhardy dhardy commented Jan 24, 2026

Move much of the internals of EditField to a new struct, Editor. This allows EditGuard methods to take receiver &mut self and &mut EditGuard instead of &mut EditField. This may also be useful for code-share with other editor widgets.

EditGuard methods are tweaked:

  • focus_gained is called when the first of keyboard or IME focus is obtained
  • focus_lost is called when both are lost
  • update is called only without input focus
  • focus_lost calls update in the default impl

@dhardy dhardy merged commit a77935f into master Jan 25, 2026
5 checks passed
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