1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Workaround Ctrl+F keypress being eaten by QtWebEngine 5.9

This commit is contained in:
David Rosca 2017-05-29 17:21:56 +02:00
parent 16f9b2fde9
commit 49eb9a862e

View File

@ -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);
}