summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-05 22:09:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-05 22:09:13 +0200
commite554ae3ba6e5f305dfb6db23a551943594216b40 (patch)
treef1727036937cd8e47b9087c6ace47b0a67989c86 /src/mainwindow.cpp
parentrekonq 0.2.54 with multi windows support (diff)
downloadrekonq-e554ae3ba6e5f305dfb6db23a551943594216b40.tar.xz
Restored the beautiful CTRL + L shortcut.
Sorry :)
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp14
1 files changed, 13 insertions, 1 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();