diff options
author | 2024-07-29 00:51:46 +0200 | |
---|---|---|
committer | 2024-07-29 00:52:26 +0200 | |
commit | 695721e120a173817125265a35afbc49813db716 (patch) | |
tree | f7a0bf27fd21796c9c47a398b4f9b10ca76eacdc /widget/src/text_input.rs | |
parent | d1fa9537f6066b8e93a156bd51a9cafc7c0bec17 (diff) | |
download | iced-695721e120a173817125265a35afbc49813db716.tar.gz iced-695721e120a173817125265a35afbc49813db716.tar.bz2 iced-695721e120a173817125265a35afbc49813db716.zip |
Implement blinking cursor for `text_editor`
Diffstat (limited to '')
-rw-r--r-- | widget/src/text_input.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/widget/src/text_input.rs b/widget/src/text_input.rs index a0fe14a0..20e80ba5 100644 --- a/widget/src/text_input.rs +++ b/widget/src/text_input.rs @@ -1210,21 +1210,6 @@ impl<P: text::Paragraph> State<P> { Self::default() } - /// Creates a new [`State`], representing a focused [`TextInput`]. - pub fn focused() -> Self { - Self { - value: paragraph::Plain::default(), - placeholder: paragraph::Plain::default(), - icon: paragraph::Plain::default(), - is_focused: None, - is_dragging: false, - is_pasting: None, - last_click: None, - cursor: Cursor::default(), - keyboard_modifiers: keyboard::Modifiers::default(), - } - } - /// Returns whether the [`TextInput`] is currently focused or not. pub fn is_focused(&self) -> bool { self.is_focused.is_some() |