changed: F1 opens command palette

This commit is contained in:
quenousimporte 2023-10-19 08:46:09 +02:00
parent 6e4a01b9c3
commit 87f31a6a26
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,6 @@ var commands = [
allowunsaved: true
},
{
shortcut: "F1",
hint: "Show help",
action: showhelp
},
@ -2459,9 +2458,10 @@ function mainkeydownhandler()
fileindex = Math.max(fileindex, 0);
applyfileindex();
}
else if (event.ctrlKey && event.key == " " || event.key == "F2")
else if (event.ctrlKey && event.key == " " || event.key == "F1")
{
commandpalette();
event.preventDefault();
}
else if (event.ctrlKey && event.shiftKey && (event.keyCode == "40" || event.keyCode == "38"))
{