fix: request redraw in text input when needed
This commit is contained in:
parent
5fd1ca4220
commit
31ec448bf0
1 changed files with 3 additions and 0 deletions
|
|
@ -1680,6 +1680,7 @@ pub fn update<'a, Message: Clone + 'static>(
|
||||||
|
|
||||||
state.last_click = Some(click);
|
state.last_click = Some(click);
|
||||||
|
|
||||||
|
shell.request_redraw();
|
||||||
shell.capture_event();
|
shell.capture_event();
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1746,6 +1747,7 @@ pub fn update<'a, Message: Clone + 'static>(
|
||||||
.cursor
|
.cursor
|
||||||
.select_range(state.cursor.start(value), position);
|
.select_range(state.cursor.start(value), position);
|
||||||
|
|
||||||
|
shell.request_redraw();
|
||||||
shell.capture_event();
|
shell.capture_event();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@ -2099,6 +2101,7 @@ pub fn update<'a, Message: Clone + 'static>(
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shell.request_redraw();
|
||||||
shell.capture_event();
|
shell.capture_event();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue