]> cloud.milkyroute.net Git - dolphin.git/commitdiff
provide backspace as alternative shortcut for "go back"
authorPeter Penz <peter.penz19@gmail.com>
Sun, 9 Sep 2007 19:02:22 +0000 (19:02 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 9 Sep 2007 19:02:22 +0000 (19:02 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=710364

src/dolphinmainwindow.cpp

index ce505ea3f69c0bafacb4542b368f2d439b9cb1d3..84f18332767f1b0354467c1018ec78fef1df6427 100644 (file)
@@ -1311,7 +1311,11 @@ void DolphinMainWindow::setupActions()
     connect(adjustViewProps, SIGNAL(triggered()), this, SLOT(adjustViewProperties()));
 
     // setup 'Go' menu
-    KStandardAction::back(this, SLOT(goBack()), actionCollection());
+    KAction* backAction = KStandardAction::back(this, SLOT(goBack()), actionCollection());
+    KShortcut backShortcut = backAction->shortcut();
+    backShortcut.setAlternate(Qt::Key_Backspace);
+    backAction->setShortcut(backShortcut);
+
     KStandardAction::forward(this, SLOT(goForward()), actionCollection());
     KStandardAction::up(this, SLOT(goUp()), actionCollection());
     KStandardAction::home(this, SLOT(goHome()), actionCollection());