mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
ctrl+d to deselect all in tag picker
This commit is contained in:
parent
ed151de19b
commit
a6391bbe8c
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ class TagLimit(QDialog):
|
||||||
self.deck = self.parent.deck
|
self.deck = self.parent.deck
|
||||||
self.dialog = aqt.forms.taglimit.Ui_Dialog()
|
self.dialog = aqt.forms.taglimit.Ui_Dialog()
|
||||||
self.dialog.setupUi(self)
|
self.dialog.setupUi(self)
|
||||||
|
s = QShortcut(QKeySequence("ctrl+d"), self.dialog.activeList, context=Qt.WidgetShortcut)
|
||||||
|
s.activated.connect(self.dialog.activeList.clearSelection)
|
||||||
|
s = QShortcut(QKeySequence("ctrl+d"), self.dialog.inactiveList, context=Qt.WidgetShortcut)
|
||||||
|
s.activated.connect(self.dialog.inactiveList.clearSelection)
|
||||||
self.rebuildTagList()
|
self.rebuildTagList()
|
||||||
restoreGeom(self, "tagLimit")
|
restoreGeom(self, "tagLimit")
|
||||||
self.exec_()
|
self.exec_()
|
||||||
|
|
Loading…
Reference in a new issue