replace sidebar filter shortcut with existing Filter button shortcut

This commit is contained in:
Damien Elmes 2021-02-05 14:32:56 +10:00
parent 8af82b4594
commit bd730a012e
2 changed files with 3 additions and 4 deletions

View file

@ -524,7 +524,6 @@ class Browser(QMainWindow):
qconnect(f.actionLastCard.triggered, self.onLastCard)
qconnect(f.actionFind.triggered, self.onFind)
qconnect(f.actionNote.triggered, self.onNote)
qconnect(f.actionTags.triggered, self.onFilterButton)
qconnect(f.actionSidebar.triggered, self.focusSidebar)
qconnect(f.actionCardList.triggered, self.onCardList)
# help
@ -946,7 +945,7 @@ QTableView {{ gridline-color: {grid} }}
dw.setWidget(self.sidebar)
self.sidebar.searchBar = searchBar = SidebarSearchBar(self.sidebar)
qconnect(
QShortcut(QKeySequence("Ctrl+Shift+B"), self).activated,
self.form.actionSidebarFilter.triggered,
self.focusSidebarSearchBar,
)
l = QVBoxLayout()

View file

@ -238,7 +238,7 @@
<string>QT_ACCEL_GO</string>
</property>
<addaction name="actionFind"/>
<addaction name="actionTags"/>
<addaction name="actionSidebarFilter"/>
<addaction name="actionSidebar"/>
<addaction name="actionNote"/>
<addaction name="actionCardList"/>
@ -398,7 +398,7 @@
<string notr="true">Ctrl+Alt+F</string>
</property>
</action>
<action name="actionTags">
<action name="actionSidebarFilter">
<property name="text">
<string>QT_ACCEL_FILTER</string>
</property>