mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Merge pull request #1034 from abdnh/clayout-cloze-shortcuts
Shortcuts to preview clozes in card layout screen
This commit is contained in:
commit
f41ec183c2
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue