diff options
| -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(); | 
