Skip to content

Commit

Permalink
add default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
7174Andy committed Dec 20, 2024
1 parent b68892a commit a9c8ac5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sleap/gui/widgets/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -2133,6 +2133,9 @@ def mousePressEvent(self, event):
if event.buttons() == Qt.LeftButton:
if event.modifiers() == Qt.ControlModifier:
self.duplicate_instance()
else:
# Default behavior is to select the instance
super(QtInstance, self).mousePressEvent(event)

def duplicate_instance(self):
"""Duplicate the instance and add it to the scene."""
Expand Down

0 comments on commit a9c8ac5

Please sign in to comment.