changed: commands order (for mobile)

This commit is contained in:
quenousimporte 2023-11-13 15:23:59 +01:00
parent d396e379d4
commit 9981af5f3b
1 changed files with 18 additions and 18 deletions

36
main.js
View File

@ -59,11 +59,29 @@ var commands = [
{ {
hint: "Close menu" hint: "Close menu"
}, },
{
shortcut: "ctrl+shift+P",
hint: "Command palette",
allowunsaved: true,
action: commandpalette,
excludepalette: true
},
{ {
shortcut: "ctrl+p", shortcut: "ctrl+p",
hint: "Show notes list", hint: "Show notes list",
action: searchandloadnote action: searchandloadnote
}, },
{
shortcut: "ctrl+n",
hint: "New note",
action: startnewnote
},
{
hint: "Force save",
action: save,
shortcut: "ctrl+s",
allowunsaved: true
},
{ {
hint: "Share note", hint: "Share note",
action: share, action: share,
@ -73,18 +91,6 @@ var commands = [
hint: "Share note (html)", hint: "Share note (html)",
action: sharehtml 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", shortcut: "ctrl+g",
hint: "Find in notes", hint: "Find in notes",
@ -179,12 +185,6 @@ var commands = [
shortcut: "ctrl+w", shortcut: "ctrl+w",
allowunsaved: true allowunsaved: true
}, },
{
hint: "Force save",
action: save,
shortcut: "ctrl+s",
allowunsaved: true
},
{ {
hint: "Toggle spell check", hint: "Toggle spell check",
action: togglespellcheck, action: togglespellcheck,