diff options
author | 2023-09-12 15:03:23 +0200 | |
---|---|---|
committer | 2023-09-12 15:03:23 +0200 | |
commit | 1455911b636f19810e12eeb12a6eed11c5244cfe (patch) | |
tree | 20c063264bcf1a2efe4c8cd8f690ad2dbd3671d2 /widget/src/text_editor.rs | |
parent | 6448429103c9c82b90040ac5a5a097bdded23f82 (diff) | |
download | iced-1455911b636f19810e12eeb12a6eed11c5244cfe.tar.gz iced-1455911b636f19810e12eeb12a6eed11c5244cfe.tar.bz2 iced-1455911b636f19810e12eeb12a6eed11c5244cfe.zip |
Add `Enter` variant to `Action` in `text::Editor`
Diffstat (limited to 'widget/src/text_editor.rs')
-rw-r--r-- | widget/src/text_editor.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index d09f2c3e..fcbd3dad 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -425,6 +425,7 @@ impl Update { keyboard::KeyCode::Down => { Some(Self::Edit(Action::MoveDown)) } + keyboard::KeyCode::Enter => Some(Self::Edit(Action::Enter)), keyboard::KeyCode::Backspace => { Some(Self::Edit(Action::Backspace)) } |