diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-05 22:09:13 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-05 22:09:13 +0200 |
commit | e554ae3ba6e5f305dfb6db23a551943594216b40 (patch) | |
tree | f1727036937cd8e47b9087c6ace47b0a67989c86 /src | |
parent | rekonq 0.2.54 with multi windows support (diff) | |
download | rekonq-e554ae3ba6e5f305dfb6db23a551943594216b40.tar.xz |
Restored the beautiful CTRL + L shortcut.
Sorry :)
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 14 | ||||
-rw-r--r-- | src/mainwindow.h | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ef99044c..a6b663a3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -239,7 +239,6 @@ void MainWindow::setupActions() // location bar a = new KAction(i18n("Location Bar"), this); - a->setShortcut(KShortcut(Qt::Key_F6)); a->setDefaultWidget(m_view->urlBar()); actionCollection()->addAction(QLatin1String("url_bar"), a); @@ -281,6 +280,12 @@ void MainWindow::setupActions() connect(m_view, SIGNAL(browserTabLoading(bool)), this, SLOT(slotBrowserLoading(bool))); slotBrowserLoading(false); //first init for blank start page + a = new KAction(this); + a->setShortcut(Qt::CTRL + Qt::Key_L); + actionCollection()->addAction(QLatin1String("open_location"), a); + connect(a, SIGNAL(triggered(bool)) , this, SLOT(slotOpenLocation())); + + // ============== Zoom Actions a = new KAction(KIcon("zoom-in"), i18n("&Enlarge Font"), this); a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_Plus)); @@ -487,6 +492,13 @@ void MainWindow::slotUpdateBrowser() } +void MainWindow::slotOpenLocation() +{ + m_view->urlBar()->selectAll(); + m_view->urlBar()->setFocus(); +} + + void MainWindow::slotFileSaveAs() { KUrl srcUrl = currentTab()->url(); diff --git a/src/mainwindow.h b/src/mainwindow.h index b97e8d25..f42ee02d 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -120,8 +120,8 @@ private slots: void slotViewTextNormal(); void slotViewTextSmaller(); - // File Menu slots + void slotOpenLocation(); void slotFileOpen(); void slotFileSaveAs(); |