编辑器快捷键

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

View File

@ -494,7 +494,11 @@ var wide = {
$output.text(data); $output.text(data);
$output.scrollTop($output[0].scrollHeight); $output.scrollTop($output[0].scrollHeight);
}, },
// 构建 & 运行. // 构建.
build: function () {
// TODO: 构建
},
// 构建并运行.
run: function () { run: function () {
var currentPath = editors.getCurrentPath(); var currentPath = editors.getCurrentPath();
if (!currentPath) { if (!currentPath) {

View File

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

View File

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