diff options
Diffstat (limited to 'src/panels/navigationtoolbar.cpp')
-rw-r--r-- | src/panels/navigationtoolbar.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/panels/navigationtoolbar.cpp b/src/panels/navigationtoolbar.cpp index ae55ac02..950efaad 100644 --- a/src/panels/navigationtoolbar.cpp +++ b/src/panels/navigationtoolbar.cpp @@ -20,6 +20,8 @@ NavigationToolBar::NavigationToolBar(QWidget *parent) : QToolBar(parent), urlBar // TODO homeAction->setObjectName("actionHome"); addWidget(urlBar); + connect(urlBar, &QLineEdit::returnPressed, this, + [this]() { emit loadRequestedUrl(QUrl::fromUserInput(urlBar->text()), rekonq::CurrentTab); }); auto *actionFocusUrlBar = new QAction(parent); actionFocusUrlBar->setShortcut({"F6"}); |