gui: mainwindow: Add CTRL+F and CTRL+W shortcuts

Add shortcuts to make entering queries more efficient

CTRL+F: Highlights rightmost filter, e. g. c:(word1 word2) would
highlight everything between (), so "word1 word" here. Alternatively,
highlights lone words, so p:(docs) word1, would highlight word1.

CTRL+W: Removes last filter or words.
This commit is contained in:
2022-08-14 13:04:10 +02:00
parent 47d0440ffb
commit 166c051cfb
2 changed files with 82 additions and 7 deletions

View File

@ -63,7 +63,8 @@ class MainWindow : public QMainWindow
unsigned int currentPreviewGeneration = 1;
void initSettingsTabs();
int currentSelectedScale();
private slots:
void processShortcut(int key);
private slots:
void lineEditReturnPressed();
void treeSearchItemActivated(QTreeWidgetItem *item, int i);
void showSearchResultsContextMenu(const QPoint &point);