diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm/MainUI.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp index 30267439..ea176846 100644 --- a/src-qt5/desktop-utils/lumina-fm/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-fm/MainUI.cpp @@ -95,6 +95,7 @@ QSize orig = settings->value("preferences/MainWindowSize", QSize()).toSize(); nextTabLShort = new QShortcut( QKeySequence(tr("Shift+Left")), this); nextTabRShort = new QShortcut( QKeySequence(tr("Shift+Right")), this); togglehiddenfilesShort = new QShortcut( QKeySequence(tr("Ctrl+H")), this); + focusDirWidgetShort = new QShortcut( QKeySequence(tr("Ctrl+L")), this); //Finish loading the interface workThread->start(); @@ -252,6 +253,13 @@ void MainUI::setupConnections(){ connect(nextTabLShort, SIGNAL(activated()), this, SLOT( prevTab() ) ); connect(nextTabRShort, SIGNAL(activated()), this, SLOT( nextTab() ) ); connect(togglehiddenfilesShort, SIGNAL(activated()), this, SLOT( togglehiddenfiles() ) ); + connect(focusDirWidgetShort, SIGNAL(activated()), this, SLOT( focusDirWidget() ) ); +} + +void MainUI::focusDirWidget() +{ + DirWidget *dir = FindActiveBrowser(); + if(dir != 0) { dir->setFocusLineDir(); } } void MainUI::togglehiddenfiles() |