mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
d4eb86a9b5
Before this change, the Editor cleared its content after each Submission event. If it didn't multiple submits for a frame would not result in the cleared text for clients that wants to clear the Editor between submits. However, for clients that do not want to clear the content or that wants to validate the text before accepting it were not supported. Instead, switch to a event stepping model, where the client can call Next to receive each EditorEvent (that is, Submit event) in turn. We can then delete the Submit flag on Editor and always report Submit events. We can also make Layout flush the pending events now that Editor always has access to its Config and input queue. Signed-off-by: Elias Naur <mail@eliasnaur.com>