Update key mappings for motion tracking in VideoEditor

This commit modifies the key bindings for toggling motion tracking and clearing tracking points in the VideoEditor. The keys 't' and 'T' have been changed to 'v' and 'V' respectively, improving consistency in user interactions. This update enhances the overall usability of the motion tracking features during video editing.
This commit is contained in:
2025-09-16 16:17:15 +02:00
parent 79aa51a21c
commit c1b6567e42

View File

@@ -3042,12 +3042,12 @@ class VideoEditor:
print(" p: Toggle project view")
print(" 1: Set cut start point")
print(" 2: Set cut end point")
print(" T: Toggle loop between markers")
print(" t: Toggle loop between markers")
print()
print("Motion Tracking:")
print(" Right-click: Add tracking point")
print(" t: Toggle motion tracking on/off")
print(" Shift+T: Clear all tracking points")
print(" V: Toggle motion tracking on/off")
print(" Shift+V: Clear all tracking points")
if len(self.video_files) > 1:
print(" N: Next video")
print(" n: Previous video")
@@ -3219,7 +3219,7 @@ class VideoEditor:
self.zoom_factor = 1.0
self.clear_transformation_cache()
self.save_state() # Save state when crop is cleared
elif key == ord("t"): # T - Toggle motion tracking
elif key == ord("v"): # V - Toggle motion tracking
if not self.is_image_mode:
if self.motion_tracker.tracking_enabled:
self.motion_tracker.stop_tracking()
@@ -3234,7 +3234,7 @@ class VideoEditor:
else:
self.set_feedback_message("Add tracking points first (right-click)")
self.save_state()
elif key == ord("T"): # Shift+T - Clear all tracking points
elif key == ord("V"): # Shift+V - Clear all tracking points
if not self.is_image_mode:
self.motion_tracker.clear_tracking_points()
self.motion_tracker.stop_tracking()