diff --git a/sloth/gui/annotationscene.py b/sloth/gui/annotationscene.py index a38104a..db8b479 100644 --- a/sloth/gui/annotationscene.py +++ b/sloth/gui/annotationscene.py @@ -172,8 +172,14 @@ class AnnotationScene(QGraphicsScene): # key event handlers #______________________________________________________________________________________________________ def selectNextItem(self): + # disable inserting + # TODO: forward this to the ButtonArea self.inserter_ = None + # set focus to the view, so that subsequent keyboard events are forwarded to the scene + if len(self.views()) > 0: + self.views()[0].setFocus(True) + if len(self.selectedItems()) == 0: for item in self.items(): if (item.flags() & QGraphicsItem.ItemIsSelectable):