feat: add text context menu (overlay and wayland popup)
This commit is contained in:
parent
2cd43a8b89
commit
c6cf3db29d
6 changed files with 731 additions and 7 deletions
|
|
@ -76,6 +76,12 @@ impl Cursor {
|
|||
self.state = State::Index(position);
|
||||
}
|
||||
|
||||
pub(crate) fn clear_selection(&mut self) {
|
||||
if let State::Selection { end, .. } = self.state {
|
||||
self.state = State::Index(end);
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub(crate) fn move_right(&mut self, value: &Value) {
|
||||
self.move_right_by_amount(value, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue