Shortcuts to preview clozes in card layout screen
Assign Alt+{number} to select cloze cards.
This commit is contained in:
parent
ea07642c16
commit
39f3b6ce93
@ -187,6 +187,12 @@ class CardLayout(QDialog):
|
|||||||
self,
|
self,
|
||||||
activated=self.tform.style_button.click,
|
activated=self.tform.style_button.click,
|
||||||
)
|
)
|
||||||
|
for i in range(min(len(self.cloze_numbers), 9)):
|
||||||
|
QShortcut( # type: ignore
|
||||||
|
QKeySequence(f"Alt+{i+1}"),
|
||||||
|
self,
|
||||||
|
activated=lambda n=i: self.pform.cloze_number_combo.setCurrentIndex(n),
|
||||||
|
)
|
||||||
|
|
||||||
# Main area setup
|
# Main area setup
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user