diff options
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index bf165148f0f..937ab38ed5d 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -533,9 +533,9 @@ impl<T: ClipboardProvider> TextInput<T> { } /// Remove the current selection and set the edit point to the end of the content. - pub fn clear_selection_to_limit(&mut self) { + pub fn clear_selection_to_limit(&mut self, direction: Direction) { self.clear_selection(); - self.adjust_horizontal_to_limit(Direction::Forward, Selection::NotSelected); + self.adjust_horizontal_to_limit(direction, Selection::NotSelected); } pub fn adjust_horizontal_by_word(&mut self, direction: Direction, select: Selection) { |