From fcbe08e709113829d3498a631a80e5d46ee2644e Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Sun, 22 Jan 2023 21:28:53 +0100 Subject: [PATCH] changed: disable stuff for ligth mode --- main.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 8cb6e6c..e5b6635 100644 --- a/main.js +++ b/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