Commit 83d1dcd1 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: shortcut for fullscreen in ace added (Ctrl+E)

Conflicts:
	slapos/runner/static/css/styles.css
parent 869851b6
......@@ -816,5 +816,22 @@ padding:10px; font-size:14px; color:#03406A}
max-width: 350px;
}
/* ********************/
.fullScreen .fullScreen-editor{
height: auto!important;
width: auto!important;
border: 0;
margin: 0;
position: fixed !important;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 10000;
}
.fullScreen {
overflow: hidden;
}
/* ******************* */
#shellinabox{width:100%; min-height:530px;}
......@@ -628,6 +628,16 @@ $(document).ready(function () {
readOnly: false // false if this command should not apply in readOnly mode
});
editor.commands.addCommand({
name: 'Fullscreen',
bindKey: {win: 'Ctrl-E', mac: 'Command-E'},
exec: function(editor) {
$("body").toggleClass("fullScreen");
$("#editor").toggleClass("fullScreen-editor");
editor.resize();
}
});
$("#save").click(function () {
beforeunload_warning_set = false;
window.onbeforeunload = function() { return; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment