clear output
This commit is contained in:
parent
a3a3ed0577
commit
9fb70afb16
|
@ -99,10 +99,10 @@ var hotkeys = {
|
||||||
$(".bottom-window-group .notification").focus();
|
$(".bottom-window-group .notification").focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// Ctrl-C
|
// Alt-C
|
||||||
clearWindow: {
|
clearWindow: {
|
||||||
ctrlKey: true,
|
ctrlKey: false,
|
||||||
altKey: false,
|
altKey: true,
|
||||||
shiftKey: false,
|
shiftKey: false,
|
||||||
which: 67
|
which: 67
|
||||||
},
|
},
|
||||||
|
@ -212,12 +212,13 @@ var hotkeys = {
|
||||||
},
|
},
|
||||||
_bindOutput: function () {
|
_bindOutput: function () {
|
||||||
$(".bottom-window-group .output").keydown(function (event) {
|
$(".bottom-window-group .output").keydown(function (event) {
|
||||||
event.preventDefault();
|
|
||||||
|
|
||||||
var hotKeys = hotkeys.defaultKeyMap;
|
var hotKeys = hotkeys.defaultKeyMap;
|
||||||
if (event.ctrlKey === hotKeys.clearWindow.ctrlKey
|
if (event.altKey === hotKeys.clearWindow.altKey
|
||||||
&& event.which === hotKeys.clearWindow.which) { // Ctrl-C clear output
|
&& event.which === hotKeys.clearWindow.which) { // Alt-C clear output
|
||||||
bottomGroup.clear('output');
|
bottomGroup.clear('output');
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
<li>F5{{.i18n.colon}}{{.i18n.build}}</li>
|
<li>F5{{.i18n.colon}}{{.i18n.build}}</li>
|
||||||
<li>F6{{.i18n.colon}}{{.i18n.build_n_run}}</li>
|
<li>F6{{.i18n.colon}}{{.i18n.build_n_run}}</li>
|
||||||
<li>Ctrl-C{{.i18n.colon}}{{.i18n.clearOutput}}</li>
|
<li>Alt-C{{.i18n.colon}}{{.i18n.clearOutput}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h2>{{.i18n.file_tree}}</h2>
|
<h2>{{.i18n.file_tree}}</h2>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
Loading…
Reference in New Issue