Skip to content

vimlike shortcuts.js.manual

Lin Zhang edited this page Oct 4, 2011 · 5 revisions

API from vimlike-shortcuts.js

文件向 window 暴露一下几个属性:

window.shortcust = {
    bindEvents:function() {/* ... */},
    unBindEvents: function() {/* ... */},
    addActions: function() {/* ... */},
    getActions: function() {/* ... */},
    logger: {
        on: function() {/* ... */},
        off: function() {/* ... */},
        log: function() {/* ... */}
    },
    isVimlikeOn: function() {/* ... */},
    showVimlikeHelp: function() {/* ... */},
    hideVimlikeHelp: function() {/* ... */},
    toggleVimlike: function() {/* ... */}
}; 
Clone this wiki locally