Skip to content

Commit

Permalink
renamed TextBox::focus to steal_focus - PistonDevelopers#606
Browse files Browse the repository at this point in the history
  • Loading branch information
psFried committed Oct 27, 2015
1 parent c3b0489 commit de688c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/text_box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ impl<'a, F> TextBox<'a, F> {
}

/// sets whether this TextBox should steal focus and capture the keyboard
pub fn focus(mut self, capture_keyboard: bool) -> Self {
pub fn steal_focus(mut self, capture_keyboard: bool) -> Self {
self.capture_keyboard = capture_keyboard;
self
}
Expand Down

0 comments on commit de688c2

Please sign in to comment.