Use Gdk.Event.triggers_context_menu in osmgpsmaps.py.
This commit is contained in:
parent
00095667e8
commit
6e24c2e79a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user