'Reimplemented to handle key events'

def keyPressEvent(self, event):

    ctrl = (event.modifiers() & Qt.ControlModifier)
    shift = (event.modifiers() & Qt.ShiftModifier)
    if (event.key() in (Qt.Key_Enter, Qt.Key_Return)):
        self.find.emit()
    elif ((event.key() == Qt.Key_F) and ctrl and shift):
        self.parent().toggle_visibility.emit((not self.isVisible()))
    else:
        QWidget.keyPressEvent(self, event)
