fn reset(&self, ctx: &mut Context<'_>) {
        ctx.widget().set("text_selection", TextSelection::default());
        ctx.widget().set("scroll_offset", Point::default());
        ctx.push_event_strategy_by_entity(
            ChangedEvent(ctx.entity),
            ctx.entity,
            EventStrategy::Direct,
        );
    }
// Reset selection and offset if text is changed from outside
Reset selection and offset if text is changed from outside
Reset selection and offset if text is changed from outside
fn reset(&self, ctx: &mut Context<'_>) {
        ctx.widget().set("text_selection", TextSelection::default());
        ctx.widget().set("scroll_offset", Point::default());
        ctx.push_event_strategy_by_entity(
            ChangedEvent(ctx.entity),
            ctx.entity,
            EventStrategy::Direct,
        );
    }
fn reset ( & self , ctx : & mut Context < ' _ > ) { ctx . widget ( ) . set ( " " , TextSelection :: default ( ) ) ; ctx . widget ( ) . set ( " " , Point :: default ( ) ) ; ctx . push_event_strategy_by_entity ( ChangedEvent ( ctx . entity ) , ctx . entity , EventStrategy :: Direct , ) ; }
Reset selection and offset if text is changed from outside
Reset selection and offset if text is changed from outside
&self
ctx
&mut Context<'_>
&self
ctx
&mut Context<'_>