From d9a7a74116c25a867c7a0e8770aaed5936094d1d Mon Sep 17 00:00:00 2001 From: RossAsscends <124905043+RossAscends@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:07:41 +0900 Subject: [PATCH] Update index.html --- public/index.html | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/public/index.html b/public/index.html index 5e759e939..be9671b55 100644 --- a/public/index.html +++ b/public/index.html @@ -1215,13 +1215,10 @@ select_selected_character(this_chid); } - //hotkey to send input with shift+enter (normal enter keypress generates a new line in the chat input box) - //problem for mobile: default iOS keyboard function is to make AutoCapitalization happen on new lines. - //AutoCapitization effectively presses the virtual Shift key when it thinks a new line/sentence is happening. - //iOS result: First Enter press will make a new line, but the second will act like shift+enter, sending the prompt to AI. + //hotkey to send input with enter (shift+enter generates a new line in the chat input box) + //this is not ideal for touch device users with virtual keyboards. //ideally we would detect if the user is using a virtual keyboard, and disable this shortcut for them. - //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. + //because mobile users' hands are always near the screen, tapping the send button is better for them, and enter should always make a new line. //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.