Accept control-click as an alternative for right-click when the Gdk

backend is Quartz.


This is a standard behavior on Macs, since they often have single-button 
mice or trackpads.



svn: r19752
This commit is contained in:
John Ralls
2012-06-04 00:47:19 +00:00
parent bb38c5c0ee
commit 0cc0915c03
16 changed files with 72 additions and 39 deletions

View File

@ -65,6 +65,7 @@ from gui.filtereditor import FilterEditor
from gen.ggettext import sgettext as _
from DdTargets import DdTargets
from gui.plug.quick import create_quickreport_menu, create_web_connect_menu
import gui.utils
#----------------------------------------------------------------
#
@ -759,7 +760,7 @@ class ListView(NavigationView):
else:
self.edit(obj)
return True
elif event.type == gtk.gdk.BUTTON_PRESS and event.button == 3:
elif gui.utils.is_right_click(event):
menu = self.uistate.uimanager.get_widget('/Popup')
#construct quick reports if needed
if menu and self.QR_CATEGORY > -1 :