Use Gdk.Event.triggers_context_menu in osmgpsmaps.py.

This commit is contained in:
John Ralls 2017-10-12 09:13:19 -07:00 committed by Nick Hall
parent 00095667e8
commit 6e24c2e79a

View File

@ -504,7 +504,7 @@ class OsmGps:
elif event.button == 2 and event.type == Gdk.EventType.BUTTON_RELEASE:
self.end_selection = current
self.zone_selection = False
elif event.button == 3 and event.type == Gdk.EventType.BUTTON_PRESS:
elif Gdk.Event.triggers_context_menu():
self.build_nav_menu(osm, event, lat, lon)
else:
self.save_center(lat, lon)