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()
|
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
|
||||||
|
|
Loading…
Reference in New Issue