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 (hashId != 0 || keyCode != 0) {
|
||||
toExecute = {
|
||||
command: findKeyCommand(hashId, keyOrText)
|
||||
command: findKeyCommand(hashId, keyOrText),
|
||||
args: { }
|
||||
};
|
||||
} else {
|
||||
toExecute = {
|
||||
|
|
@ -93,16 +94,10 @@ var KeyBinding = function(editor) {
|
|||
}
|
||||
|
||||
if (toExecute) {
|
||||
// TODO: use requisition to execute the command rather than canon
|
||||
// do we store a requ, if so where?
|
||||
var success;
|
||||
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);
|
||||
}
|
||||
var success = this.$requisition.exec({
|
||||
typed: toExecute.command,
|
||||
args: toExecute.args
|
||||
});
|
||||
|
||||
if (success) {
|
||||
return event.stopEvent(e);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit c432453874edb9fd4e999c833f66437351c4ff3f
|
||||
Subproject commit 193f1c44bbb260c737ef077a47e638899a9375f7
|
||||
Loading…
Add table
Add a link
Reference in a new issue