UpdateChange is a helper function that calls [WidgetBase.SendChange] and then [WidgetBase.Update]. That is the correct order, since calling [WidgetBase.Update] first would cause the value of the widget to be incorrectly overridden in a [Value] context.
(original ...events.Event)
| 192 | // calling [WidgetBase.Update] first would cause the value of the widget |
| 193 | // to be incorrectly overridden in a [Value] context. |
| 194 | func (wb *WidgetBase) UpdateChange(original ...events.Event) { |
| 195 | wb.SendChange(original...) |
| 196 | wb.Update() |
| 197 | } |
| 198 | |
| 199 | func (wb *WidgetBase) sendKey(kf keymap.Functions, original ...events.Event) { |
| 200 | if wb.This == nil { |