From: Urban Wallasch Date: Wed, 5 May 2021 19:29:09 +0000 (+0200) Subject: * Switched popup menu focus handling from to . X-Git-Tag: v0.1~8 X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=1eab466a21ad6b487f645ebdf2c4c1b25584511f;p=ffpreview.git * Switched popup menu focus handling from to . --- 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))