mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 09:44:13 +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:
@@ -317,8 +317,6 @@ const Editor = Module("editor", {
|
|||||||
}
|
}
|
||||||
|
|
||||||
update(true);
|
update(true);
|
||||||
if (textBox)
|
|
||||||
textBox.removeAttribute("readonly");
|
|
||||||
|
|
||||||
}, this);
|
}, this);
|
||||||
if (res == false)
|
if (res == false)
|
||||||
@@ -328,9 +326,13 @@ const Editor = Module("editor", {
|
|||||||
// Errors are unlikely, and our error messages won't
|
// Errors are unlikely, and our error messages won't
|
||||||
// likely be any more helpful than that given in the
|
// likely be any more helpful than that given in the
|
||||||
// exception.
|
// exception.
|
||||||
dactyl.echoerr(e);
|
dactyl.reportError(e, true);
|
||||||
tmpBg = "red";
|
tmpBg = "red";
|
||||||
}
|
}
|
||||||
|
finally {
|
||||||
|
if (textBox)
|
||||||
|
textBox.removeAttribute("readonly");
|
||||||
|
}
|
||||||
|
|
||||||
// blink the textbox after returning
|
// blink the textbox after returning
|
||||||
if (textBox) {
|
if (textBox) {
|
||||||
|
|||||||
@@ -807,9 +807,6 @@ const Events = Module("events", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key == "<C-c>")
|
|
||||||
util.interrupted = true;
|
|
||||||
|
|
||||||
// feedingKeys needs to be separate from interrupted so
|
// feedingKeys needs to be separate from interrupted so
|
||||||
// we can differentiate between a recorded <C-c>
|
// we can differentiate between a recorded <C-c>
|
||||||
// interrupting whatever it's started and a real <C-c>
|
// interrupting whatever it's started and a real <C-c>
|
||||||
@@ -862,6 +859,9 @@ const Events = Module("events", {
|
|||||||
return null;
|
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
|
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
|
// XXX: ugly hack for now pass certain keys to the host app as
|
||||||
|
|||||||
Reference in New Issue
Block a user