]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Swap shortcuts of "editable_location" and "replace_location" actions
authorJekyll Wu <adaptee@gmail.com>
Sun, 12 Aug 2012 14:18:50 +0000 (22:18 +0800)
committerJekyll Wu <adaptee@gmail.com>
Mon, 13 Aug 2012 05:12:11 +0000 (13:12 +0800)
That makes "Ctrl+L" less surprising to users who use it frequently in
web browsers

BUG: 183821
FIXED-IN: 4.10.0
REVIEW: 105994

src/dolphinmainwindow.cpp

index 1ce51935f7b638cfeabec8b2565b58d5367f90c4..fe3024d23a90c51c676d030d025ecd24cfd0816c 100644 (file)
@@ -1560,12 +1560,12 @@ void DolphinMainWindow::setupActions()
 
     KToggleAction* editableLocation = actionCollection()->add<KToggleAction>("editable_location");
     editableLocation->setText(i18nc("@action:inmenu Navigation Bar", "Editable Location"));
 
     KToggleAction* editableLocation = actionCollection()->add<KToggleAction>("editable_location");
     editableLocation->setText(i18nc("@action:inmenu Navigation Bar", "Editable Location"));
-    editableLocation->setShortcut(Qt::CTRL | Qt::Key_L);
+    editableLocation->setShortcut(Qt::Key_F6);
     connect(editableLocation, SIGNAL(triggered()), this, SLOT(toggleEditLocation()));
 
     KAction* replaceLocation = actionCollection()->addAction("replace_location");
     replaceLocation->setText(i18nc("@action:inmenu Navigation Bar", "Replace Location"));
     connect(editableLocation, SIGNAL(triggered()), this, SLOT(toggleEditLocation()));
 
     KAction* replaceLocation = actionCollection()->addAction("replace_location");
     replaceLocation->setText(i18nc("@action:inmenu Navigation Bar", "Replace Location"));
-    replaceLocation->setShortcut(Qt::Key_F6);
+    replaceLocation->setShortcut(Qt::CTRL | Qt::Key_L);
     connect(replaceLocation, SIGNAL(triggered()), this, SLOT(replaceLocation()));
 
     // setup 'Go' menu
     connect(replaceLocation, SIGNAL(triggered()), this, SLOT(replaceLocation()));
 
     // setup 'Go' menu