mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Add editFocusGained hook
This commit is contained in:
parent
b34404aa08
commit
822e93c1d8
1 changed files with 1 additions and 0 deletions
|
@ -546,6 +546,7 @@ class Editor(object):
|
||||||
(type, num) = str.split(":", 1)
|
(type, num) = str.split(":", 1)
|
||||||
self.enableButtons()
|
self.enableButtons()
|
||||||
self.currentField = int(num)
|
self.currentField = int(num)
|
||||||
|
runHook("editFocusGained", self.note, self.currentField)
|
||||||
# state buttons changed?
|
# state buttons changed?
|
||||||
elif str.startswith("state"):
|
elif str.startswith("state"):
|
||||||
(cmd, txt) = str.split(":", 1)
|
(cmd, txt) = str.split(":", 1)
|
||||||
|
|
Loading…
Reference in a new issue