diff options
author | Matthew S <matthewsot@outlook.com> | 2017-12-05 16:35:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 16:35:08 -0800 |
commit | a1cf86c872c00faa92daa080abbdd2eba9b28ead (patch) | |
tree | feac1c7dea2ae6e123902212964380b14a5ef0dd | |
parent | 45e3006e8b5a99a965cd16bd35e8a47202c1124f (diff) |
Fixed editor-input problems
-rw-r--r-- | editor-input.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor-input.js b/editor-input.js index ca42c0c..d13340a 100644 --- a/editor-input.js +++ b/editor-input.js @@ -1,9 +1,9 @@ docs.keyboard = {}; docs.keyboard.startBlockingMouse = function () { - $(".kix-appview-editor").on("mousedown click mouseup mousemove mouseover", utils.stopEvent); + $(".kix-appview-editor").on("mousedown click mouseup mousemove mouseover", docs.utils.stopEvent); - $(".kix-appview-editor").children().on("mousedown click mouseup mousemove mouseover", utils.stopEvent); + $(".kix-appview-editor").children().on("mousedown click mouseup mousemove mouseover", docs.utils.stopEvent); $("#attendees-dropdown, #action-button").on("mousedown", keyboard.escape); }; @@ -23,7 +23,7 @@ $(".docs-texteventtarget-iframe").contents().find("[contenteditable=\"true\"]"). if (!docs.keyboard.handleKeydown) return; if (typeof e.key === "undefined") { - e.key = utils.keyFromKeyCode(e.shiftKey, e.keyCode); + e.key = docs.utils.keyFromKeyCode(e.shiftKey, e.keyCode); } docs.keyboard.handleKeydown(e); }); |