Rename password method in TextInput to secure
This commit is contained in:
parent
5827023ccc
commit
9dd20ead08
3 changed files with 6 additions and 10 deletions
|
|
@ -122,8 +122,8 @@ where
|
|||
}
|
||||
|
||||
/// Converts the [`TextInput`] into a secure password input.
|
||||
pub fn password(mut self) -> Self {
|
||||
self.is_secure = true;
|
||||
pub fn secure(mut self, is_secure: bool) -> Self {
|
||||
self.is_secure = is_secure;
|
||||
self
|
||||
}
|
||||
|
||||
|
|
@ -991,9 +991,9 @@ where
|
|||
}
|
||||
|
||||
return event::Status::Captured;
|
||||
} else {
|
||||
state.is_pasting = None;
|
||||
}
|
||||
|
||||
state.is_pasting = None;
|
||||
}
|
||||
Event::Keyboard(keyboard::Event::ModifiersChanged(modifiers)) => {
|
||||
let state = state();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue