diff options
author | 2020-02-22 22:17:51 +0100 | |
---|---|---|
committer | 2020-02-22 22:17:51 +0100 | |
commit | 33ca29f3954960800da2f5e35068b31fe6c1c586 (patch) | |
tree | 570a6ec078cf95dced15abc5e6d12664ccbadd6f /native/src | |
parent | b2344a852e98af734e9d8f7fe3d493f9e82ca80c (diff) | |
download | iced-33ca29f3954960800da2f5e35068b31fe6c1c586.tar.gz iced-33ca29f3954960800da2f5e35068b31fe6c1c586.tar.bz2 iced-33ca29f3954960800da2f5e35068b31fe6c1c586.zip |
ctrl + a selection for text input
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/widget/text_input.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index bfe5244f..4aed2767 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -439,6 +439,16 @@ where self.state.is_pasting = None; } } + keyboard::KeyCode::A => { + if platform::is_copy_paste_modifier_pressed(modifiers) { + self.state.cursor_position = { + Cursor::Selection { + start: 0, + end: self.value.len(), + } + } + } + } _ => {} }, Event::Keyboard(keyboard::Event::Input { |