code: 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:
              # Toggle find widgets
              self.parent().toggle_visibility.emit(not self.isVisible())
          else:
              QWidget.keyPressEvent(self, event)
docs: Reimplemented to handle key events