I forgot to also send this to the list, in case others are interested....
--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web: http://www.carsonfarmer.com/
http://www.ftools.ca/
--- Begin Message ---
Hi Luca,
You can probably do this via the keyPressEvent() of your plugin dialog:
def keyPressEvent( self, e ):
if ( e.modifiers() == Qt.ControlModifier or e.modifiers() ==
Qt.MetaModifier ) and e.key() == Qt.Key_Some_Key:
# run the tool
else:
QDialog.keyPressEvent( self, e )
Hope that helps,
Carson
--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web: http://www.carsonfarmer.com/
http://www.ftools.ca/
--- End Message ---
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user