Skip to content

Commit

Permalink
add shortcut/accelerator to SavedSearch Dialog Find button
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Dec 18, 2024
1 parent 6b03074 commit 2ababd1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/Dialogs/SearchEditor.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/************************************************************************
**
** Copyright (C) 2015-2022 Kevin B. Hendricks, Stratford, Ontario, Canada
** Copyright (C) 2015-2024 Kevin B. Hendricks, Stratford, Ontario, Canada
** Copyright (C) 2012 John Schember <[email protected]>
** Copyright (C) 2012 Dave Heiland
** Copyright (C) 2012 Grant Drake
Expand Down Expand Up @@ -139,7 +139,7 @@ void SearchEditor::ShowMessage(const QString &message)
{
ui.Message->setText(message);
ui.Message->repaint();
QApplication::processEvents();
// QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
}

bool SearchEditor::SaveData(QList<SearchEditorModel::searchEntry *> entries, QString filename)
Expand Down
8 changes: 4 additions & 4 deletions src/Dialogs/SearchEditor.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/************************************************************************
**
** Copyright (C) 2022 Kevin B. Hendricks, Stratford Ontario Canada
** Copyright (C) 2012 John Schember <[email protected]>
** Copyright (C) 2012 Dave Heiland
** Copyright (C) 2012 Grant Drake
** Copyright (C) 2022-2024 Kevin B. Hendricks, Stratford Ontario Canada
** Copyright (C) 2012 John Schember <[email protected]>
** Copyright (C) 2012 Dave Heiland
** Copyright (C) 2012 Grant Drake
**
** This file is part of Sigil.
**
Expand Down
5 changes: 4 additions & 1 deletion src/Form_Files/SearchEditor.ui
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ If a group is selected, find the first entry in the list,
then if not found look for the second entry in the list, etc.</string>
</property>
<property name="text">
<string>Find</string>
<string>&amp;Find</string>
</property>
<property name="shortcut">
<string>Alt+F</string>
</property>
</widget>
</item>
Expand Down
4 changes: 2 additions & 2 deletions src/MiscEditors/SearchEditorTreeView.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/************************************************************************
**
** Copyright (C) 2015-2021 Kevin B. Hendricks, Stratford Ontario Canada
** Copyright (C) 2015-2024 Kevin B. Hendricks, Stratford Ontario Canada
** Copyright (C) 2012 John Schember <[email protected]>
** Copyright (C) 2012 Dave Heiland
** Copyright (C) 2012 Grant Drake
Expand Down Expand Up @@ -37,7 +37,7 @@ SearchEditorTreeView::SearchEditorTreeView(QWidget *parent)
setSelectionMode(QAbstractItemView::ExtendedSelection);
setSelectionBehavior(QAbstractItemView::SelectRows);
setSortingEnabled(false);
setTabKeyNavigation(true);
setTabKeyNavigation(false);
setAutoExpandDelay(200);
}

Expand Down

0 comments on commit 2ababd1

Please sign in to comment.