--- a/eric6/UI/CodeDocumentationViewer.py Thu Apr 15 16:52:05 2021 +0200 +++ b/eric6/UI/CodeDocumentationViewer.py Thu Apr 15 18:11:24 2021 +0200 @@ -84,13 +84,9 @@ ) self.__contents = QWebEngineView(self) self.__contents.page().linkHovered.connect(self.__showLink) - try: - self.__contents.settings().setAttribute( - QWebEngineSettings.WebAttribute.FocusOnNavigationEnabled, - False) - except AttributeError: - # pre Qt 5.8 - pass + self.__contents.settings().setAttribute( + QWebEngineSettings.WebAttribute.FocusOnNavigationEnabled, + False) self.__viewerType = "QWebEngineView" except ImportError: self.__contents = QTextBrowser(self)