fix(main.py): include keys '1' through '5' in the condition to prevent unintended navigation
This commit is contained in:
4
main.py
4
main.py
@@ -845,8 +845,8 @@ class MediaGrader:
|
||||
self.current_frame = 0
|
||||
self.load_current_frame()
|
||||
|
||||
if key not in [ord("p"), ord("u")]:
|
||||
print("Navigating to: ", self.current_index)
|
||||
if key not in [ord("p"), ord("u"), ord("1"), ord("2"), ord("3"), ord("4"), ord("5")]:
|
||||
print("Navigating to (pu12345): ", self.current_index)
|
||||
self.current_index += 1
|
||||
|
||||
if self.current_cap:
|
||||
|
Reference in New Issue
Block a user