cmark

My personal build of CMark ✏️

Commit
b77e606261c821883476aed2b856a594a642ecae
Parent
cc7788cf62999d317626301960f83d42219acb7e
Author
John MacFarlane <jgm@berkeley.edu>
Date

Dingus: Make tab insert a tab in the text box.

instead of moving you to the next field.

Diffstat

1 file changed, 6 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified dingus.html 6 6 0
diff --git a/dingus.html b/dingus.html
@@ -70,6 +70,12 @@ $(document).ready(function() {
     // show HTML tab if text is from query
     $('#result-tabs a[href="#result"]').tab('show');
   }
+  // make tab insert a tab in the text box:
+  $("#text").addEventListener('keydown', function (e) {
+    if (e.which == 9) {
+        e.preventDefault();
+    }
+  });
   parseAndRender();
   $("#clear-text-box").click(function(e) {
     $("#text").val('');