aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode_insert.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/mode_insert.coffee')
-rw-r--r--content_scripts/mode_insert.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/content_scripts/mode_insert.coffee b/content_scripts/mode_insert.coffee
index c0a61d31..5375bcdc 100644
--- a/content_scripts/mode_insert.coffee
+++ b/content_scripts/mode_insert.coffee
@@ -44,6 +44,7 @@ class InsertModeTrigger extends Mode
# and unfortunately, the focus event happens *before* the change is made. Therefore, we need to
# check again whether the active element is contentEditable.
return @continueBubbling unless document.activeElement?.isContentEditable
+ console.log @count, @name, "fired (by keydown)"
new InsertMode
targetElement: document.activeElement
@stopBubblingAndTrue
@@ -52,6 +53,7 @@ class InsertModeTrigger extends Mode
focus: (event) =>
triggerSuppressor.unlessSuppressed =>
return unless DomUtils.isFocusable event.target
+ console.log @count, @name, "fired (by focus)"
new InsertMode
targetElement: event.target