summaryrefslogtreecommitdiff
path: root/common/content/editor.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2010-12-01 14:29:18 -0500
committerKris Maglione <maglione.k@gmail.com>2010-12-01 14:29:18 -0500
commit437cd802ebbb60ba5f901a588328670b19f835c3 (patch)
tree6374d965a58ecfbfbb1086452caecf9786091b97 /common/content/editor.js
parentcb0478ddd67b4f951e610d7ab7263bfcb1913b25 (diff)
downloadpentadactyl-437cd802ebbb60ba5f901a588328670b19f835c3.tar.gz
Don't treat <C-c> specially in pass-through mode. Closes issue #160.
--HG-- extra : rebase_source : 95b34d6df9705042fca26aeaf63f51d57131458b
Diffstat (limited to 'common/content/editor.js')
-rw-r--r--common/content/editor.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/content/editor.js b/common/content/editor.js
index 06ff9fd4..78280152 100644
--- a/common/content/editor.js
+++ b/common/content/editor.js
@@ -317,8 +317,6 @@ const Editor = Module("editor", {
}
update(true);
- if (textBox)
- textBox.removeAttribute("readonly");
}, this);
if (res == false)
@@ -328,9 +326,13 @@ const Editor = Module("editor", {
// Errors are unlikely, and our error messages won't
// likely be any more helpful than that given in the
// exception.
- dactyl.echoerr(e);
+ dactyl.reportError(e, true);
tmpBg = "red";
}
+ finally {
+ if (textBox)
+ textBox.removeAttribute("readonly");
+ }
// blink the textbox after returning
if (textBox) {