provide a number of pref tweaks to give a fastpath to non-human commands
This commit is contained in:
parent
4fc695fb67
commit
6e7d9e61c0
2 changed files with 7 additions and 12 deletions
|
|
@ -82,7 +82,8 @@ var KeyBinding = function(editor) {
|
||||||
if (!toExecute || !toExecute.command) {
|
if (!toExecute || !toExecute.command) {
|
||||||
if (hashId != 0 || keyCode != 0) {
|
if (hashId != 0 || keyCode != 0) {
|
||||||
toExecute = {
|
toExecute = {
|
||||||
command: findKeyCommand(hashId, keyOrText)
|
command: findKeyCommand(hashId, keyOrText),
|
||||||
|
args: { }
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
toExecute = {
|
toExecute = {
|
||||||
|
|
@ -93,16 +94,10 @@ var KeyBinding = function(editor) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (toExecute) {
|
if (toExecute) {
|
||||||
// TODO: use requisition to execute the command rather than canon
|
var success = this.$requisition.exec({
|
||||||
// do we store a requ, if so where?
|
typed: toExecute.command,
|
||||||
var success;
|
args: toExecute.args
|
||||||
if (typeof toExecute.command === "string" && toExecute.args == null) {
|
});
|
||||||
this.$requisition.update({ typed: toExecute.command });
|
|
||||||
success = this.$requisition.exec();
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
success = canon.exec(toExecute.command, this.$env, toExecute.args);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (success) {
|
if (success) {
|
||||||
return event.stopEvent(e);
|
return event.stopEvent(e);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit c432453874edb9fd4e999c833f66437351c4ff3f
|
Subproject commit 193f1c44bbb260c737ef077a47e638899a9375f7
|
||||||
Loading…
Add table
Add a link
Reference in a new issue