]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/windows/BrowserWindow.cpp
Add a man file.
[PrivacyBrowserPC.git] / src / windows / BrowserWindow.cpp
index 3958c88cbacf3bea314cbf118479b9a19a2523b5..a0a7a97346211e0a52f59b026b1fceb307834f6b 100644 (file)
@@ -434,7 +434,7 @@ void BrowserWindow::escape() const
         // Exit full screen browsing.
         fullScreenActionPointer->trigger();
     }
-    else if (!findTextLineEditPointer->text().isEmpty())  // Find text is activated.
+    else if (!findTextLineEditPointer->text().isEmpty())  // Find text is populated.
     {
         // Clear the text in the line edit.
         findTextLineEditPointer->clear();
@@ -442,6 +442,11 @@ void BrowserWindow::escape() const
         // Clear the search in the WebEngine.
         tabWidgetPointer->findText(QStringLiteral(""));
     }
+    else if (findTextLineEditActionPointer->isVisible())  // Find text actions are visible.
+    {
+        // Hide the find text actions.
+        hideFindTextActions();
+    }
 }
 
 void BrowserWindow::fileNew() const