1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 15:54:11 +01:00

Don't treat <C-c> specially in pass-through mode. Closes issue #160.

--HG--
extra : rebase_source : 95b34d6df9705042fca26aeaf63f51d57131458b
This commit is contained in:
Kris Maglione
2010-12-01 14:29:18 -05:00
parent cb0478ddd6
commit 437cd802eb
2 changed files with 8 additions and 6 deletions

View File

@@ -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) {

View File

@@ -807,9 +807,6 @@ const Events = Module("events", {
});
}
if (key == "<C-c>")
util.interrupted = true;
// feedingKeys needs to be separate from interrupted so
// we can differentiate between a recorded <C-c>
// interrupting whatever it's started and a real <C-c>
@@ -862,6 +859,9 @@ const Events = Module("events", {
return null;
}
if (key == "<C-c>")
util.interrupted = true;
stop = true; // set to false if we should NOT consume this event but let the host app handle it
// XXX: ugly hack for now pass certain keys to the host app as