diff options
-rw-r--r-- | browser/browserview.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/browser/browserview.cpp b/browser/browserview.cpp index 1cc3b19..9aeadd9 100644 --- a/browser/browserview.cpp +++ b/browser/browserview.cpp @@ -280,10 +280,11 @@ void BrowserView::contentSizeChanged(const QSize &size) { } void BrowserView::select() { - this->setFocus(Qt::OtherFocusReason); + QKeyEvent event(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier); + QCoreApplication::sendEvent(m_webview.page(), &event); } void BrowserView::activate() { - this->activateWindow(); + this->setVisible(true); } void BrowserView::onSelectIndexes(QList<int> indexes) { |