mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -04:00
change cloze del key; never unset currentField
This commit is contained in:
parent
c69d68e141
commit
5702ec2da1
1 changed files with 4 additions and 2 deletions
|
@ -96,7 +96,8 @@ function onBlur() {
|
|||
saveField("blur");
|
||||
}
|
||||
clearChangeTimer();
|
||||
currentField = null;
|
||||
// if we lose focus, assume the last field is still targeted
|
||||
//currentField = null;
|
||||
};
|
||||
|
||||
function saveField(type) {
|
||||
|
@ -261,7 +262,8 @@ class Editor(object):
|
|||
_("Subscript (Ctrl+r)"))
|
||||
but = b("foreground", self.onForeground, "F7", text=" ")
|
||||
self.setupForegroundButton(but)
|
||||
but = b("cloze", self.onCloze, "F9", _("Cloze (F9)"), text="[...]")
|
||||
but = b("cloze", self.onCloze, "Ctrl+Shift+c",
|
||||
_("Cloze (Ctrl+Shift+c)"), text="[...]")
|
||||
but.setFixedWidth(24)
|
||||
# fixme: better image names
|
||||
b("text-speak", self.onAddMedia, "F3", _("Add audio/video (F4)"))
|
||||
|
|
Loading…
Reference in a new issue