Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Created April 30, 2010 14:40
Show Gist options
  • Save StanAngeloff/385290 to your computer and use it in GitHub Desktop.
Save StanAngeloff/385290 to your computer and use it in GitHub Desktop.
$toolkit.include('command.language');
$self.controller = function controller() {
var canChangeTriggerKeys, command, supportedLanguages, triggerKeys;
$toolkit.command.language.controller.apply(this, [(command = 'autoCloseFirst'), (triggerKeys = '/'), (supportedLanguages = ['HTML']), (canChangeTriggerKeys = false)]);
this.trigger = function trigger(e) {
var scimoz = ko.views.manager.currentView.scimoz;
if (scimoz.autoCActive()) {
window.setTimeout(function() {
scimoz.autoCComplete();
}, 250);
}
return true;
};
return this;
};
$self.registerAll = function registerAll() {
return new $self.controller().register();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment