Add ctrl+l as shortcut to move the focus to the search entry

This commit is contained in:
Jean-Francois Dockes 2015-07-29 09:51:03 +02:00
parent bbc2dd1e48
commit bd93f547d5

View file

@ -279,6 +279,9 @@ void RclMain::init()
QKeySequence seq("Ctrl+Shift+s"); QKeySequence seq("Ctrl+Shift+s");
QShortcut *sc = new QShortcut(seq, this); QShortcut *sc = new QShortcut(seq, this);
connect(sc, SIGNAL (activated()), sSearch, SLOT (takeFocus())); connect(sc, SIGNAL (activated()), sSearch, SLOT (takeFocus()));
QKeySequence seql("Ctrl+l");
sc = new QShortcut(seql, this);
connect(sc, SIGNAL (activated()), sSearch, SLOT (takeFocus()));
connect(&m_watcher, SIGNAL(fileChanged(QString)), connect(&m_watcher, SIGNAL(fileChanged(QString)),
this, SLOT(idxStatus())); this, SLOT(idxStatus()));