Message input field / return key #596
Replies: 5 comments 2 replies
-
Well, two thoughts. First, Shift+Enter is how you can insert a new line without submitting the form. Do you do that? I think what you're saying is that you are using Shift+Enter but you occasionally miss the Shift key and then accidentally submit? I added another keyboard shortcut: up arrow. I copied this from slack. If you're inside the chat composer, you submit a message and then realize you want to make a change, up arrow lets you quickly edit the previous message. But, all that said... the thing I've also seen done before is as soon as Shift+Enter is pressed once you insert a newline as intended but assume the user is doing a complex message so you add an explicit submit button and disable send-on-enter for the rest of this message so that they have to click. I personally don't love this since it means you have to use the mouse and I love keyboard shortcuts :) but I've seen other products do this. |
Beta Was this translation helpful? Give feedback.
-
Wasn't aware of shift-enter. That does help a lot! How about in PWA land, on mobile? |
Beta Was this translation helpful? Give feedback.
-
Yea it works on mobile PWA. Shift+Enter there too. Facebook pioneered this when they introduced send-on-enter in their comments awhile back and a bunch of people have copied it since. Probably most text inputs still default to enter = new line, but whenever you find one where enter submits then Shift+Enter is what everyone implements. |
Beta Was this translation helpful? Give feedback.
-
Ah, the app could check if were on Android and change that Enter behavior.
|
Beta Was this translation helpful? Give feedback.
-
Probably, but it was a while ago I wrote that code. I'm also not sure how
to reliably know in a PWA app if it's being used on an Android device.
That's probably the part that would require investigation.
…On Fri, Jan 17, 2025 at 10:08 AM Stephan Wehner ***@***.***> wrote:
Is it a one-liner? Now it seems more like a bug in the keyboard app.
—
Reply to this email directly, view it on GitHub
<#596 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAIR5K4EAEKGSXWNVIRAXL2LETIBAVCNFSM6AAAAABVEAQZD6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBWHA4DONQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
From time to time it happens that I want to enter a well-formatted message, basically like an email. The problem I run into is that the return key triggers submitting the form. It may well be that the LLM doesn't care about this too much, but I do when reading the conversation later.
Is there a way around this that I'm not aware off?
Otherwise I would think one would solve this by adding a small button "convert to textarea" so that one has to use the submit button to submit. That may also allow addressing the sizing problem -- at least to me it looks like one doesn;t get a lot of space.
Beta Was this translation helpful? Give feedback.
All reactions