Added metakey + b hotkey compatibility for script editor close and save. Refactored Server constructor and initialization

This commit is contained in:
danielyxie
2018-05-05 15:23:57 -05:00
parent 9acc422f05
commit 2a87aa16f6
6 changed files with 21192 additions and 20906 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ function updateScriptEditorContent() {
$(document).keydown(function(e) {
if (Engine.currentPage == Engine.Page.ScriptEditor) {
//Ctrl + b
if (e.keyCode == 66 && e.ctrlKey) {
if (e.keyCode == 66 && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
saveAndCloseScriptEditor();
}