summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dingus.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/dingus.html b/dingus.html
index 7c3a7c7..373db8f 100644
--- 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('');