From 1eab466a21ad6b487f645ebdf2c4c1b25584511f Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Wed, 5 May 2021 21:29:09 +0200 Subject: [PATCH] * Switched popup menu focus handling from to . --- ffpreview.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffpreview.py b/ffpreview.py index 209c95c..b163432 100755 --- a/ffpreview.py +++ b/ffpreview.py @@ -465,7 +465,7 @@ def lclick_action(event): def rclick_menu(event): def on_pop_focus_out(event): popup.destroy() - def on_popup_enter(event): + def on_popup_visible(event): popup.grab_set_global() def copy2clp(txt): root.clipboard_clear() @@ -474,7 +474,7 @@ def rclick_menu(event): bfont.configure(weight=tk.font.BOLD) popup = tk.Menu(root, tearoff=0) popup.bind("", on_pop_focus_out) - popup.bind("", on_popup_enter) + popup.bind("", on_popup_visible) popup.add_command(label='Open in mpv at timestamp', command=lambda:mpv_open(cfg.vid, event.widget.th[2], True), font=bfont) popup.add_command(label='Open in mpv', command=lambda:mpv_open(cfg.vid)) -- 2.30.2