mirror of
https://github.com/corpnewt/ProperTree.git
synced 2026-08-12 22:31:30 +04:00
Add ButtonRelease-3 binding for macOS right-click
This commit is contained in:
@@ -605,6 +605,7 @@ class PlistWindow(tk.Toplevel):
|
|||||||
# Bind right click
|
# Bind right click
|
||||||
if str(sys.platform) == "darwin":
|
if str(sys.platform) == "darwin":
|
||||||
self._tree.bind("<ButtonRelease-2>", self.popup) # ButtonRelease-2 on mac
|
self._tree.bind("<ButtonRelease-2>", self.popup) # ButtonRelease-2 on mac
|
||||||
|
self._tree.bind("<ButtonRelease-3>", self.popup) # ButtonRelease-3 on mac
|
||||||
self._tree.bind("<Control-ButtonRelease-1>", self.popup) # Ctrl+Left Click on mac
|
self._tree.bind("<Control-ButtonRelease-1>", self.popup) # Ctrl+Left Click on mac
|
||||||
else:
|
else:
|
||||||
self._tree.bind("<ButtonRelease-3>", self.popup)
|
self._tree.bind("<ButtonRelease-3>", self.popup)
|
||||||
|
|||||||
Reference in New Issue
Block a user