No need to focus ace, add more expansions.

This commit is contained in:
Peter Xiao 2013-08-14 13:29:34 -07:00
commit 1d7c9220ee

View file

@ -304,6 +304,14 @@ var rules = {
{
substr: '>',
newSubstr: ' tag end '
},
{
substr: '</',
newSubstr: ' closing tag '
},
{
substr: '/>',
newSubstr: ' close tag '
}
]
}
@ -876,7 +884,7 @@ var init = function(editor) {
cvoxAce.editor.getSession().on('changeAnnotation', onAnnotationChange);
cvoxAce.editor.on('changeStatus', onChangeStatus);
cvoxAce.editor.on('findSearchBox', onFindSearchbox);
window.addEventListener('keydown', onKeyDown);
editor.container.addEventListener('keydown', onKeyDown);
/* Assume we start in command mode if vim. */
if (isVimMode()) {