summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
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();