From 822e93c1d823085bb18c3f55a8c15eb7c0a0c842 Mon Sep 17 00:00:00 2001 From: Rob Hoelz Date: Tue, 21 May 2013 00:19:43 +0200 Subject: [PATCH] Add editFocusGained hook --- aqt/editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/editor.py b/aqt/editor.py index a8d508590..2fb52131c 100644 --- a/aqt/editor.py +++ b/aqt/editor.py @@ -546,6 +546,7 @@ class Editor(object): (type, num) = str.split(":", 1) self.enableButtons() self.currentField = int(num) + runHook("editFocusGained", self.note, self.currentField) # state buttons changed? elif str.startswith("state"): (cmd, txt) = str.split(":", 1)