From 91b402deacc432a5998ca71a3e9a91bdf5402360 Mon Sep 17 00:00:00 2001 From: Ryan Peters Date: Thu, 26 Jan 2023 13:32:51 -0500 Subject: [PATCH] use 2 spaces for tabs --- wwwroot/js/site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wwwroot/js/site.js b/wwwroot/js/site.js index 96ff2b7..860f1f0 100644 --- a/wwwroot/js/site.js +++ b/wwwroot/js/site.js @@ -81,11 +81,11 @@ $(function () { // set textarea value to: text before caret + tab + text after caret $this.val($this.val().substring(0, start) - + '\t' + + ' ' + $this.val().substring(end)); // put caret at right position again - this.selectionStart = this.selectionEnd = start + 1; + this.selectionStart = this.selectionEnd = start + 2; // prevent the focus lose return false;