Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an option to send a message on ENTER on mobile? #7

Open
arthef opened this issue Apr 16, 2020 · 2 comments
Open

Is there an option to send a message on ENTER on mobile? #7

arthef opened this issue Apr 16, 2020 · 2 comments

Comments

@arthef
Copy link

arthef commented Apr 16, 2020

It works on desktop but on mobile you have to press the send button. As now physical keyboard is pretty common for tablets, it would be useful to have an option to enable send on ENTER for mobile devices as well.

@shannah
Copy link
Owner

shannah commented Apr 16, 2020

I spent a lot of time looking at existing chat app solutions on mobile and desktop to come to the current behaviour (requiring pressing "Send" button on mobile), but "Enter" on desktop. I haven't looked at the tablet situation as closely. It is possible tablets work more like desktop, in which case it should accept "Enter".... alternatively might need to just try to detect a hardware keyboard and use "Desktop" behaviour in that case.

@arthef
Copy link
Author

arthef commented Apr 16, 2020

Ok, I have to confess, my opinion comes from personal experience as a user but also from professional experience as chat systems vendor. I am from Tigase. We have been working on chat systems for over 10 years. Mostly on server side but we also have client apps for desktop and mobile devices. You can get them from respective app stores.

So, talking from my experience. The best is to have some reasonable defaults but also provide an option to customize behavior. Some people prefer pushing send button, some users prefer to send on ENTER even on mobile devices. There is also a case for a multi-line messages, when a next line is added by SHIFT-ENTER. Again, many people prefer to actually send a message on SHIFT-ENTER and leave enter to adding a new line.

So, the best approach for me, would be to leave the current behavior as it is as default and add API to customize it. Then we can add GUI for people to toggle between options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants