Skip to content

Commit

Permalink
Fixed #58: fixed shift-select to extend selection without needing mou…
Browse files Browse the repository at this point in the history
…se movement
  • Loading branch information
robmcmullen committed Jun 4, 2016
1 parent 5a2e877 commit a6a3b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion omnivore/utils/wx/bitviewscroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,9 @@ def on_left_down(self, evt):
e.cursor_index = index1
elif index2 > e.anchor_start_index:
e.anchor_end_index = index2
e.cursor_index = index2
e.cursor_index = index2 - 1
e.anchor_initial_start_index, e.anchor_initial_end_index = e.anchor_start_index, e.anchor_end_index
e.select_range(e.anchor_start_index, e.anchor_end_index, add=self.multi_select_mode)
else:
e.anchor_initial_start_index, e.anchor_initial_end_index = index1, index2
e.cursor_index = index1
Expand Down
3 changes: 2 additions & 1 deletion omnivore/utils/wx/bytegrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,9 @@ def on_left_down(self, evt):
e.cursor_index = index1
elif index2 > e.anchor_start_index:
e.anchor_end_index = index2
e.cursor_index = index2
e.cursor_index = index2 - 1
e.anchor_initial_start_index, e.anchor_initial_end_index = e.anchor_start_index, e.anchor_end_index
e.select_range(e.anchor_start_index, e.anchor_end_index, add=self.multi_select_mode)
else:
self.ClearSelection()
index1, index2 = self.table.get_index_range(r, c)
Expand Down

0 comments on commit a6a3b8f

Please sign in to comment.