Merge pull request #1622 from rs017991/text_input_shift_click
TextInput: SHIFT+Left Click to Select
This commit is contained in:
commit
54105a24e1
1 changed files with 10 additions and 2 deletions
|
|
@ -454,9 +454,17 @@ where
|
|||
)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
}
|
||||
.unwrap_or(0);
|
||||
|
||||
state.cursor.move_to(position.unwrap_or(0));
|
||||
if state.keyboard_modifiers.shift() {
|
||||
state.cursor.select_range(
|
||||
state.cursor.start(value),
|
||||
position,
|
||||
);
|
||||
} else {
|
||||
state.cursor.move_to(position);
|
||||
}
|
||||
state.is_dragging = true;
|
||||
}
|
||||
click::Kind::Double => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue