Added code to the QWebEngine based help viewer to handle an escape key press ending a search action. eric7

Wed, 24 Apr 2024 17:43:30 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 24 Apr 2024 17:43:30 +0200
branch
eric7
changeset 10699
11b9f03e5559
parent 10698
ed332f3d26a7
child 10700
5746c020c598

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):
         """

eric ide

mercurial