changed: disable stuff for ligth mode

This commit is contained in:
quenousimporte 2023-01-22 21:28:53 +01:00
parent 429a7821ac
commit fcbe08e709
1 changed files with 6 additions and 1 deletions

View File

@ -1464,6 +1464,11 @@ function splitshortcut(s)
function mainkeydownhandler() function mainkeydownhandler()
{ {
if (settings.light)
{
return;
}
if (event.key == "Escape") if (event.key == "Escape")
{ {
if (!searchdialog.hidden) if (!searchdialog.hidden)
@ -1595,7 +1600,7 @@ function editorkeydown()
insert("["); insert("[");
searchautocomplete(); searchautocomplete();
} }
else if (settings.tagautocomplete && event.key == " " && before(1) == "," && md.value.substring(0, getpos()).split("\n").pop().startsWith("tags: ")) else if (!settings.light && settings.tagautocomplete && event.key == " " && before(1) == "," && md.value.substring(0, getpos()).split("\n").pop().startsWith("tags: "))
{ {
event.preventDefault(); event.preventDefault();
// search in tags list // search in tags list