Wed, 24 Apr 2024 17:43:30 +0200
Added code to the QWebEngine based help viewer to handle an escape key press ending a search action.
src/eric7/HelpViewer/HelpViewerImplQWE.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/HelpViewer/HelpViewerImplQWE.py Wed Apr 24 16:23:20 2024 +0200 +++ b/src/eric7/HelpViewer/HelpViewerImplQWE.py Wed Apr 24 17:43:30 2024 +0200 @@ -471,6 +471,8 @@ ): self.__helpViewerWidget.searchPrev() evt.accept() + elif key == Qt.Key.Key_Escape: + self.findText("") def _mouseReleaseEvent(self, evt): """