Added some edit/save/back keybindings.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3308 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2016-08-20 17:05:10 +00:00
parent b908f63424
commit 40b0de6c15
3 changed files with 186 additions and 174 deletions

View File

@@ -11,6 +11,15 @@ window.addEventListener("load", function() {
'showTrailingSpace': true,
});
gBackup = gEditor.getValue();
gEditor.focus();
});
window.addEventListener("keydown", function(event) {
if (event.keyCode == 83 && event.altKey) {
save();
} else if (event.keyCode == 66 && event.altKey) {
back();
}
});
function explodePath() {