gomuks icon indicating copy to clipboard operation
gomuks copied to clipboard

iOS Safari: "enter" often sends rather than inserts a linebreak

Open ajkessel opened this issue 2 months ago • 2 comments

The behavior isn't consistent, but often when accessing gomuks via iOS (Safari browser), hitting "enter" on the soft keyboard sends the message rather than inserting a blank line, making it impossible to have a multi-line message. I can't figure out why sometimes you can hit "enter" and sometimes not.

On an iPad with a hardware keyboard, the behavior is similar, but there you can always hit "shift-enter" to insert a blank line.

ajkessel avatar Oct 25 '25 18:10 ajkessel

It's supposed to work the way you tell it to via preferences, but if the preferences say use enter to send and enter doesn't consistently send, then that's a bug

tulir avatar Oct 25 '25 18:10 tulir

I changed the setting to enable "Use Ctrl+Enter to send" and now I can consistently send multiline messages on iOS. I do think it was behaving inconsistently prior to changing that setting but I haven't been able to reproduce the behavior consistently enough to illustrate.

This does raise a different issue: when that setting is enabled, there is no way to send with keyboard on an iPhone or iPad. The iPhone soft keyboard lacks the concept of "Ctrl+Enter" but perhaps that is unavoidable. I wonder if there is some way the browser can add a "send" key to the on-screen soft keyboard?

But on an iPad with an external hardware keyboard, Ctrl+Enter brings up a clipboard menu rather than sends the message. I wonder if there is a way to override this or otherwise make it possible to send messages from iOS/iPadOS when you have a hardware keyboard with modifier keys.

ajkessel avatar Oct 26 '25 14:10 ajkessel