changed: disable stuff for ligth mode
This commit is contained in:
parent
429a7821ac
commit
fcbe08e709
7
main.js
7
main.js
|
@ -1464,6 +1464,11 @@ function splitshortcut(s)
|
|||
|
||||
function mainkeydownhandler()
|
||||
{
|
||||
if (settings.light)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.key == "Escape")
|
||||
{
|
||||
if (!searchdialog.hidden)
|
||||
|
@ -1595,7 +1600,7 @@ function editorkeydown()
|
|||
insert("[");
|
||||
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();
|
||||
// search in tags list
|
||||
|
|
Loading…
Reference in New Issue