fixed: insert next list item correctly when hitting enter

This commit is contained in:
quenousimporte 2023-06-07 09:43:12 +02:00
parent 73216ae5ae
commit 496aeb11b7
1 changed files with 2 additions and 1 deletions

View File

@ -2146,7 +2146,7 @@ function editorkeydown()
{
var line = md.value.substring(0, getpos()).split("\n").pop();
markerslist.filter(marker => line.startsWith(marker))
.forEach(marker =>
.every(marker =>
{
event.preventDefault();
if (line != marker)
@ -2157,6 +2157,7 @@ function editorkeydown()
{
backspace(marker.length);
}
return false;
});
}
else if (event.key === "Tab")