From 49eb9a862e4441670339b8075318e16070f0183e Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 29 May 2017 17:21:56 +0200 Subject: [PATCH] Workaround Ctrl+F keypress being eaten by QtWebEngine 5.9 --- src/lib/app/browserwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index 97239f41f..1eab597d7 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -1305,6 +1305,18 @@ void BrowserWindow::keyReleaseEvent(QKeyEvent* event) return; } + switch (event->key()) { + case Qt::Key_F: + if (event->modifiers() == Qt::ControlModifier) { + action(QSL("Edit/Find"))->trigger(); + event->accept(); + } + break; + + default: + break; + } + QMainWindow::keyReleaseEvent(event); }