Created
April 30, 2010 14:40
-
-
Save StanAngeloff/385290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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