┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-09-09 19:02:22 +0000
committerPeter Penz <[email protected]>2007-09-09 19:02:22 +0000
commitd13a8401489bc3f44c7253475336e4a909ea12e7 (patch)
tree6436d1487eb7333d1a7ba5725c713ebb4e2bf371
parentea270709c1ed77978d0b88016ab490fe67b73c56 (diff)
provide backspace as alternative shortcut for "go back"
svn path=/trunk/KDE/kdebase/apps/; revision=710364
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index ce505ea3f..84f183327 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -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());