Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
fixed skipping events in BatchList
Browse files Browse the repository at this point in the history
  • Loading branch information
Michał Szymaniak committed Jul 23, 2020
1 parent 2f6625a commit 967410b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 0 additions & 2 deletions subsync/gui/components/batchlist/batchlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ def dragSelection(self, src=None):
@update_lock
def onLeftDown(self, event):
self.clearSelection()
event.Skip()

@update_lock
def onResize(self, event):
Expand Down Expand Up @@ -569,7 +568,6 @@ def onMenuChannelsClick(self, event, cell=None):
with ChannelsWin(self, channelIds=ids) as dlg:
if dlg.ShowModal() == wx.ID_OK:
self.updateSelectedInputs(channels=dlg.GetValue())
event.Skip()

@error_dlg
@update_lock
Expand Down
12 changes: 6 additions & 6 deletions subsync/gui/components/batchlist/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ def onLeftDown(self, event):
self.parent.setPickedCell(self)
else:
self.parent.clearSelection()
event.Skip()

def onLeftUp(self, event):
if self.visible and not event.ControlDown() and not event.ShiftDown() \
and not event.GetId() == self.m_bitmapIcon.GetId():
self.parent.clearSelection(exclude=[ self ])
self.select(True)
self.parent.setPickedCell(self)
event.Skip()
and not event.GetId() == self.m_bitmapIcon.GetId():
self.parent.clearSelection(exclude=[ self ])
self.select(True)
self.parent.setPickedCell(self)
else:
event.Skip()

def onLeftDClick(self, event):
event.Skip()
3 changes: 2 additions & 1 deletion subsync/gui/components/batchlist/inputcell.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def onMouseMove(self, event):
def onLeftDClick(self, event):
if self.item is not None:
self.showPropsWin()
event.Skip()
else:
event.Skip()

def showPropsWin(self):
self.parent.clearSelection(exclude=[ self ])
Expand Down
3 changes: 2 additions & 1 deletion subsync/gui/components/batchlist/outputcell.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def showPropsWin(self):
def onLeftDClick(self, event):
if self.visible:
self.showPropsWin()
event.Skip()
else:
event.Skip()


class OutputSyncCell(BaseCell):
Expand Down

0 comments on commit 967410b

Please sign in to comment.