mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
hold down option to not increment cloze
This commit is contained in:
parent
fe8178a5de
commit
51d58f2cce
1 changed files with 2 additions and 0 deletions
|
@ -586,6 +586,8 @@ class Editor(object):
|
|||
m = re.findall("\{\{c(\d+)::", f)
|
||||
if m:
|
||||
next = sorted([int(x) for x in m])[-1] + 1
|
||||
if self.mw.app.keyboardModifiers() & Qt.AltModifier:
|
||||
next -= 1
|
||||
else:
|
||||
next = 1
|
||||
self.web.eval("wrap('{{c%d::', '}}');" % next)
|
||||
|
|
Loading…
Reference in a new issue