From 7f6a1363331e539a2c6f6c594900bb26c075c13f Mon Sep 17 00:00:00 2001 From: Martin Baeuml Date: Fri, 10 May 2013 17:44:43 +0200 Subject: [PATCH] accept escape key --- sloth/gui/annotationscene.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sloth/gui/annotationscene.py b/sloth/gui/annotationscene.py index 6c75e84..f7ab14d 100644 --- a/sloth/gui/annotationscene.py +++ b/sloth/gui/annotationscene.py @@ -1,4 +1,4 @@ -"""Dies ist das AnnotationScene module""" +"""This is the AnnotationScene module""" from PyQt4.QtGui import * from PyQt4.QtCore import * from sloth.items import * @@ -292,13 +292,13 @@ class AnnotationScene(QGraphicsScene): # deselect all selected items for item in self.selectedItems(): item.setSelected(False) + event.accept() elif len(self.selectedItems()) > 0: for item in self.selectedItems(): item.keyPressEvent(event) QGraphicsScene.keyPressEvent(self, event) - #event.ignore() # # slots for signals from the model