mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-05 01:05:46 +01:00
Enabled autocommmands(trigger) to call function.
This commit is contained in:
@@ -251,7 +251,10 @@ function AutoCommands() //{{{
|
||||
lastPattern = autoCmd.pattern;
|
||||
|
||||
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