Skip to content

Commit

Permalink
Add cmd-opt-s for export .js
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Oct 4, 2018
1 parent b2bcbb3 commit ad16a98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/main-process/appmenus.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ function setupMenus(callbacks) {
},
{
label: 'Export story.js only...',
accelerator: 'CmdOrCtrl+Alt+S',
enabled: callbacks.isFocusedWindow,
click: callbacks.exportJSOnly
},
Expand Down
3 changes: 3 additions & 0 deletions app/renderer/editorView.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ editor.completers.push(inkCompleter);
// our "go to anything" command.
editor.commands.removeCommand("jumptomatching")

// Unbind CMD-ALT-S from Ace so we can use it for save js only
editor.commands.removeCommand("sortlines");

// Unfortunately standard jquery events don't work since
// Ace turns pointer events off
editor.on("click", function(e){
Expand Down

0 comments on commit ad16a98

Please sign in to comment.