编辑器快捷键

This commit is contained in:
Liang Ding 2014-10-22 13:49:40 +08:00
parent 9f5d7ed32f
commit 91ae76f0d0
4 changed files with 12 additions and 5 deletions

View File

@ -27,7 +27,8 @@
"format": "格式化",
"goget": "go get",
"goinstall": "go install",
"build_n_run": "构建 & 运行",
"build": "构建",
"build_n_run": "构建并运行",
"editor": "编辑器",
"max_editor": "编辑器窗口最大化",
"restore_editor": "编辑器窗口还原",
@ -83,7 +84,6 @@
"focus_output": "焦点切换到输出窗口",
"focus_search": "焦点切换到搜索窗口",
"focus_notification": "焦点切换到通知窗口",
"build_run": "构建并运行",
"colon": ""
}

View File

@ -390,7 +390,7 @@ var wide = {
return config.label.confirm_save;
}
};
// 禁止鼠标右键菜单
document.oncontextmenu = function () {
return false;
@ -494,7 +494,11 @@ var wide = {
$output.text(data);
$output.scrollTop($output[0].scrollHeight);
},
// 构建 & 运行.
// 构建.
build: function () {
// TODO: 构建
},
// 构建并运行.
run: function () {
var currentPath = editors.getCurrentPath();
if (!currentPath) {

View File

@ -44,6 +44,9 @@
<span>{{.i18n.run}}</span>
<div class="frame">
<ul>
<li class="run disabled" onclick="wide.build()">
<span>{{.i18n.build}}</span>
</li>
<li class="run disabled" onclick="wide.run()">
<span>{{.i18n.build_n_run}}</span>
</li>

View File

@ -34,7 +34,7 @@
</ul>
<h2>{{.i18n.run}}</h2>
<ul>
<li>F6{{.i18n.colon}}{{.i18n.build_run}}</li>
<li>F6{{.i18n.colon}}{{.i18n.build_n_run}}</li>
</ul>
</body>
</html>