diff options
| author | 2024-07-08 01:25:41 +0200 | |
|---|---|---|
| committer | 2024-07-08 01:25:41 +0200 | |
| commit | acf6daff46f8a0363a46f1957f481fa6625c7790 (patch) | |
| tree | 22673d11b6878a19eda279ef24add1de11dc3d16 /widget/src | |
| parent | 23d9497e7ff54f48a4c07247d7f1f68270b510d2 (diff) | |
| parent | 76f5bc2ccebb4c8b76ef81856c52da5b5e7c8960 (diff) | |
| download | iced-acf6daff46f8a0363a46f1957f481fa6625c7790.tar.gz iced-acf6daff46f8a0363a46f1957f481fa6625c7790.tar.bz2 iced-acf6daff46f8a0363a46f1957f481fa6625c7790.zip  | |
Merge pull request #2321 from PgBiel/select-all
Add "Select All" functionality on Ctrl+A to TextEditor
Diffstat (limited to '')
| -rw-r--r-- | widget/src/text_editor.rs | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index fc2ade43..0156b960 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -762,6 +762,11 @@ impl Update {                          {                              return Some(Self::Paste);                          } +                        keyboard::Key::Character("a") +                            if modifiers.command() => +                        { +                            return Some(Self::Action(Action::SelectAll)); +                        }                          _ => {}                      }  | 
