Skip to content

Commit

Permalink
fix tab
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Oct 8, 2022
1 parent ca67127 commit 0c85f09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/settings/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ setTimeout(async () => {
if(e.key === "Tab") {
e.preventDefault();
e.stopImmediatePropagation();
customCSS.value += ' ';
let pos = customCSS.selectionStart;
customCSS.value = customCSS.value.slice(0, pos) + " " + customCSS.value.slice(pos);
customCSS.selectionStart = customCSS.selectionEnd = pos + 4;
}
});
customCSSSave.addEventListener('click', () => {
Expand Down

0 comments on commit 0c85f09

Please sign in to comment.