mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
replace sidebar filter shortcut with existing Filter button shortcut
This commit is contained in:
parent
8af82b4594
commit
bd730a012e
2 changed files with 3 additions and 4 deletions
|
@ -524,7 +524,6 @@ class Browser(QMainWindow):
|
||||||
qconnect(f.actionLastCard.triggered, self.onLastCard)
|
qconnect(f.actionLastCard.triggered, self.onLastCard)
|
||||||
qconnect(f.actionFind.triggered, self.onFind)
|
qconnect(f.actionFind.triggered, self.onFind)
|
||||||
qconnect(f.actionNote.triggered, self.onNote)
|
qconnect(f.actionNote.triggered, self.onNote)
|
||||||
qconnect(f.actionTags.triggered, self.onFilterButton)
|
|
||||||
qconnect(f.actionSidebar.triggered, self.focusSidebar)
|
qconnect(f.actionSidebar.triggered, self.focusSidebar)
|
||||||
qconnect(f.actionCardList.triggered, self.onCardList)
|
qconnect(f.actionCardList.triggered, self.onCardList)
|
||||||
# help
|
# help
|
||||||
|
@ -946,7 +945,7 @@ QTableView {{ gridline-color: {grid} }}
|
||||||
dw.setWidget(self.sidebar)
|
dw.setWidget(self.sidebar)
|
||||||
self.sidebar.searchBar = searchBar = SidebarSearchBar(self.sidebar)
|
self.sidebar.searchBar = searchBar = SidebarSearchBar(self.sidebar)
|
||||||
qconnect(
|
qconnect(
|
||||||
QShortcut(QKeySequence("Ctrl+Shift+B"), self).activated,
|
self.form.actionSidebarFilter.triggered,
|
||||||
self.focusSidebarSearchBar,
|
self.focusSidebarSearchBar,
|
||||||
)
|
)
|
||||||
l = QVBoxLayout()
|
l = QVBoxLayout()
|
||||||
|
|
|
@ -238,7 +238,7 @@
|
||||||
<string>QT_ACCEL_GO</string>
|
<string>QT_ACCEL_GO</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionFind"/>
|
<addaction name="actionFind"/>
|
||||||
<addaction name="actionTags"/>
|
<addaction name="actionSidebarFilter"/>
|
||||||
<addaction name="actionSidebar"/>
|
<addaction name="actionSidebar"/>
|
||||||
<addaction name="actionNote"/>
|
<addaction name="actionNote"/>
|
||||||
<addaction name="actionCardList"/>
|
<addaction name="actionCardList"/>
|
||||||
|
@ -398,7 +398,7 @@
|
||||||
<string notr="true">Ctrl+Alt+F</string>
|
<string notr="true">Ctrl+Alt+F</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionTags">
|
<action name="actionSidebarFilter">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>QT_ACCEL_FILTER</string>
|
<string>QT_ACCEL_FILTER</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
Loading…
Reference in a new issue