From 938177e22554ec136b85347a373d6d7ac195030e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 21 Dec 2019 05:36:36 +0100 Subject: Move cursor position to start on left boundary click --- native/src/widget/text_input.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'native/src') diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index fe002965..a6ddeb5c 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -209,6 +209,8 @@ where 0, self.value.len(), ); + } else { + self.state.cursor_position = 0; } } -- cgit