diff options
author | Andreas Sinz <andreas.sinz@aon.at> | 2016-09-05 21:57:57 +0200 |
---|---|---|
committer | Andreas Sinz <andreas.sinz@aon.at> | 2016-09-06 10:47:29 +0200 |
commit | 5d968519ba65b6d6b72ce032a680f750b44af765 (patch) | |
tree | c62eb74136cc86fa552704a935bd9ead9b5f856f /src-qt5/desktop-utils/lumina-fm/MainUI.cpp | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-5d968519ba65b6d6b72ce032a680f750b44af765.tar.gz lumina-5d968519ba65b6d6b72ce032a680f750b44af765.tar.bz2 lumina-5d968519ba65b6d6b72ce032a680f750b44af765.zip |
Added Ctrl+L Shortcut to focus the Line-Dir
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() |