From 738fafb723f35550ae2bba3462be98ac1bdc77f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguy=E1=BB=85n?= Date: Sat, 20 Sep 2014 23:26:11 -0700 Subject: [PATCH] Fixed Scintilla/SciMoz support --- content/frame.js | 4 ++-- content/kix.js | 3 --- content/sciMoz.js | 13 +++++++------ 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/content/frame.js b/content/frame.js index 1d794ae..5957e7a 100644 --- a/content/frame.js +++ b/content/frame.js @@ -767,7 +767,7 @@ addEventListener("keydown", function (evt) { }, true); addEventListener("keypress", function (evt) { - //dump("AVIM.onKeyPress -- code: " + String.fromCharCode(evt.which) + " #" + evt.which + + //dump("AVIM.onKeyPress -- isChrome: " + isChrome + "; code: " + String.fromCharCode(evt.which) + " #" + evt.which + // "; target: " + evt.target.nodeName + "." + evt.target.className + "#" + evt.target.id + // "; originalTarget: " + evt.originalTarget.nodeName + "." + evt.originalTarget.className + "#" + evt.originalTarget.id + "\n"); // debug if (evt.ctrlKey || evt.metaKey || evt.altKey || checkCode(evt)) return; @@ -786,7 +786,7 @@ addEventListener("keypress", function (evt) { let scintilla = koView && koView.scintilla; if (scintilla && scintilla.inputField && origTarget == scintilla.inputField.inputField) { - handleSciMoz(e); + handleSciMoz(evt); return; } diff --git a/content/kix.js b/content/kix.js index 84ff855..eb57f4f 100644 --- a/content/kix.js +++ b/content/kix.js @@ -29,9 +29,6 @@ function Transferable(win) { * Proxy for a Google Kix editor to pose as an ordinary HTML