Make right-click work on Windows

This commit is contained in:
Daniel Beck 2014-04-24 23:38:42 +02:00
parent eb684a6e49
commit bd3ffd3ec1

View File

@ -349,6 +349,9 @@ def doit(dir, files):
t.bind("<Key-%d>" % i, lambda e, c=c, i=i: setdepth(e, c, i))
c.bind("<Button-4>", lambda e: scroll(e, -1))
c.bind("<Button-5>", lambda e: scroll(e, 1))
if os.name == 'nt':
c.bind("<Button-3>", ascend)
else:
c.bind("<Button-2>", ascend)
c.tag_bind("all", "<Button-1>", descend)
c.tag_bind("all", "<Enter>", schedule_tip)