mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05: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)
|
m = re.findall("\{\{c(\d+)::", f)
|
||||||
if m:
|
if m:
|
||||||
next = sorted([int(x) for x in m])[-1] + 1
|
next = sorted([int(x) for x in m])[-1] + 1
|
||||||
|
if self.mw.app.keyboardModifiers() & Qt.AltModifier:
|
||||||
|
next -= 1
|
||||||
else:
|
else:
|
||||||
next = 1
|
next = 1
|
||||||
self.web.eval("wrap('{{c%d::', '}}');" % next)
|
self.web.eval("wrap('{{c%d::', '}}');" % next)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue