mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update index.html
This commit is contained in:
@@ -1213,6 +1213,7 @@
|
||||
//because mobile users' hands are always near the screen, tapping the send button is better for them.
|
||||
//caveat: people on an iPad using a Bluetooth keyboard will need to be treated as PC users for this purpose.
|
||||
//note: CAI seems to have this handled. PC: shift+enter = new line, enter = send. iOS: shift+enter AND enter both make new lines, and only the send button sends.
|
||||
//maybe a way to simulate this would be to disable the eventListener for people iOS.
|
||||
|
||||
$("#send_textarea").keydown(function (e) {
|
||||
if(e.which === 13 && e.shiftKey && is_send_press == false) {
|
||||
|
Reference in New Issue
Block a user