格式化快捷键

This commit is contained in:
Liang Ding 2014-09-14 20:43:12 +08:00
parent ddd00a468d
commit 54b051a45e
1 changed files with 11 additions and 0 deletions

View File

@ -288,6 +288,17 @@ var wide = {
return;
}
if (event.altKey && event.shiftKey && event.which === 70) { // Alt+Shift+F 格式化当前编辑器文件
if (!wide.curNode) {
return false;
}
wide.fmt();
event.preventDefault();
return;
}
});
}
};