diff --git a/main.js b/main.js index dd29497..9bad561 100644 --- a/main.js +++ b/main.js @@ -59,11 +59,29 @@ var commands = [ { hint: "Close menu" }, +{ + shortcut: "ctrl+shift+P", + hint: "Command palette", + allowunsaved: true, + action: commandpalette, + excludepalette: true +}, { shortcut: "ctrl+p", hint: "Show notes list", action: searchandloadnote }, +{ + shortcut: "ctrl+n", + hint: "New note", + action: startnewnote +}, +{ + hint: "Force save", + action: save, + shortcut: "ctrl+s", + allowunsaved: true +}, { hint: "Share note", action: share, @@ -73,18 +91,6 @@ var commands = [ hint: "Share note (html)", action: sharehtml }, -{ - shortcut: "ctrl+n", - hint: "New note", - action: startnewnote -}, -{ - shortcut: "ctrl+shift+P", - hint: "Command palette", - allowunsaved: true, - action: commandpalette, - excludepalette: true -}, { shortcut: "ctrl+g", hint: "Find in notes", @@ -179,12 +185,6 @@ var commands = [ shortcut: "ctrl+w", allowunsaved: true }, -{ - hint: "Force save", - action: save, - shortcut: "ctrl+s", - allowunsaved: true -}, { hint: "Toggle spell check", action: togglespellcheck,