Skip to content

Commit

Permalink
➕ Open new Qilin instance with shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartozzz committed Sep 15, 2017
1 parent 44683a4 commit 04cbedf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/scripts/shortcuts/FileShortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,21 @@ function saveFile(path, content) {
});
}

shortcut("defmod-n", (event) => {
event.preventDefault();
event.stopPropagation();

nw.Window.open("dist/index.html", {
new_instance: true,
focus: true,
frame: false,
min_height: 600,
min_width: 1000,
});

return false;
});

shortcut("defmod-o", (event) => {
event.preventDefault();
event.stopPropagation();
Expand Down

0 comments on commit 04cbedf

Please sign in to comment.