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