def get_focus_widget(self):
        """
        Returns the Widget with focus.

        :return: Widget with focus.
        :rtype: QWidget
        """

        current_widget = QApplication.focusWidget()
        if current_widget is None:
            return False

        if current_widget.objectName() == "Script_Editor_Output_plainTextEdit" or \
                isinstance(current_widget, Editor):
            return current_widget