Fix resetting shift select range
Before this fix the following steps would not work correctly: 1. Select a range with shift click. 2. Select a single item that's in the currently selected range, without holding shift. 3. Hold shift and click another item to select a new range. Instead of the item selected in step 2 being the start or end of the range, the original range from step one is used to get the start or end of the new range. This fix makes sure the range gets reset when selecting an item in step 2.
This commit is contained in:
parent
85929c44ce
commit
5e65ca6d0b
1 changed files with 1 additions and 1 deletions
|
|
@ -2245,8 +2245,8 @@ impl Tab {
|
|||
if !item.selected {
|
||||
self.clicked = click_i_opt;
|
||||
item.selected = true;
|
||||
self.select_range = Some((i, i));
|
||||
}
|
||||
self.select_range = Some((i, i));
|
||||
self.select_focus = click_i_opt;
|
||||
self.selected_clicked = true;
|
||||
} else if !dont_unset && item.selected {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue