mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-27 13:21:41 -05:00
enter key
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user