ctrl + a selection for text input
This commit is contained in:
parent
b2344a852e
commit
33ca29f395
@ -439,6 +439,16 @@ where
|
|||||||
self.state.is_pasting = None;
|
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 {
|
Event::Keyboard(keyboard::Event::Input {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user