mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 21:35:47 +01:00
Enabled autocommmands(trigger) to call function.
This commit is contained in:
@@ -251,7 +251,10 @@ function AutoCommands() //{{{
|
|||||||
lastPattern = autoCmd.pattern;
|
lastPattern = autoCmd.pattern;
|
||||||
|
|
||||||
liberator.echomsg("autocommand " + autoCmd.command, 9);
|
liberator.echomsg("autocommand " + autoCmd.command, 9);
|
||||||
liberator.execute(commands.replaceTokens(autoCmd.command, args));
|
if (autoCmd.command instanceof Function)
|
||||||
|
autoCmd.command.call(autoCmd, args);
|
||||||
|
else
|
||||||
|
liberator.execute(commands.replaceTokens(autoCmd.command, args));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user