Trying to capture key combination ctrl+u in my event filter on the map canvas. I have it checking for mouse events and those work fine, but I never get a key event when pressing any key.
def eventFilter(self, source, event) if event.type() == event.KeyPress: self._log_msg("Other Key Event") if event.modifiers() == Qt.ControlModifier and event.key() == Qt.Key_U: self._log_msg("Key Event: Ctrl+U") Luke Catania US Army ERDC-GRL JCMS Site Planning Developer
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer