From ddb3440cb3b6f0781d774790b71ac4cc1b5ae2e9 Mon Sep 17 00:00:00 2001
From: Kyle <41976328+ImKyle4815@users.noreply.github.com>
Date: Thu, 18 Apr 2019 20:12:57 -0700
Subject: [PATCH] enter key
---
data/main.js | 9 +++++++++
index.html | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/data/main.js b/data/main.js
index 7fa7ace7..99dd5224 100644
--- a/data/main.js
+++ b/data/main.js
@@ -28,6 +28,15 @@ function scrollFunction() {
}
}
+function textAreaKeyPressed() {
+ if (event.keyCode == 13) {
+ setTimeout(function() {
+ cursorIndex = document.getElementById("inputText").selectionStart
+ document.getElementById("inputText").value = document.getElementById("inputText").value.slice(0, cursorIndex) + "{line}" + document.getElementById("inputText").value.slice(cursorIndex, 0)
+ }, 5)
+ }
+}
+
diff --git a/index.html b/index.html
index ba64a3f7..77a24eeb 100644
--- a/index.html
+++ b/index.html
@@ -246,7 +246,7 @@
Rules Text
-
+
Rules Text Font Size