ctrl + a selection for text input

This commit is contained in:
FabianLars 2020-02-22 22:17:51 +01:00
parent b2344a852e
commit 33ca29f395

View File

@ -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 {