The losingFocusCallback can be specified for the VtText(1vtcl) command. Call this callback when the text widget loses focus.