From 65c61cf5ef74ef4be386e0e6a9bc056f34bc6adc Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 3 Feb 2018 04:19:54 +0100 Subject: Add keyboard shortcuts in SearchDialog CTRL+F: search filename CTRL+L: select all and focus search CTRL+M: search actor CTRL+T: search title CTRL+X: hide Unfortunately, it's surprisingly hard to capture CTRL+A, so I chose CTRL +M (m for model) for actor search. CTRL+A is consumed by some other Widget and never reaches SearchDialog. Maybe an EventFilter in the parent or the MainWindow would work, but that's not worth it. --- filewidget.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'filewidget.cpp') diff --git a/filewidget.cpp b/filewidget.cpp index 51426a4..a56d1fa 100644 --- a/filewidget.cpp +++ b/filewidget.cpp @@ -924,6 +924,7 @@ void FileWidget::keyPressEvent(QKeyEvent *e){ if(e->key() == Qt::Key_S && (e->modifiers() & Qt::ControlModifier)){ mSearchDlg->show(); mSearchDlg->raise(); + mSearchDlg->setFocus(); goto exit; } if(e->key() == Qt::Key_D && (e->modifiers() & Qt::ControlModifier)){ -- cgit v1.2.3-70-g09d2