remove cli

This commit is contained in:
Fabian Jakobs 2011-08-16 12:16:39 +02:00
commit 8ee1ffab20
4 changed files with 3 additions and 57 deletions

View file

@ -477,8 +477,7 @@ exports.launch = function(env) {
function onResize() {
var width = (document.documentElement.clientWidth - 280);
container.style.width = width + "px";
cockpitInput.style.width = width + "px";
container.style.height = (document.documentElement.clientHeight - 22) + "px";
container.style.height = document.documentElement.clientHeight + "px";
env.split.resize();
// env.editor.resize();
};
@ -486,9 +485,6 @@ exports.launch = function(env) {
window.onresize = onResize;
onResize();
// Call resize on the cli explizit. This is necessary for Firefox.
env.cli.cliView.resizer()
event.addListener(container, "dragover", function(e) {
return event.preventDefault(e);
});
@ -560,32 +556,6 @@ exports.launch = function(env) {
* This demonstrates how you can define commands and bind shortcuts to them.
*/
// Command to focus the command line from the editor.
canon.addCommand({
name: "focuscli",
bindKey: {
win: "Ctrl-J",
mac: "Command-J",
sender: "editor"
},
exec: function() {
env.cli.cliView.element.focus();
}
});
// Command to focus the editor line from the command line.
canon.addCommand({
name: "focuseditor",
bindKey: {
win: "Ctrl-J",
mac: "Command-J",
sender: "cli"
},
exec: function() {
env.editor.focus();
}
});
// Fake-Save, works from the editor and the command line.
canon.addCommand({
name: "save",