Code Monkey home page Code Monkey logo

Comments (6)

dariakhimych avatar dariakhimych commented on June 7, 2024 2

@jlubeck Well, it strongly depends on a use case. In our library, we send a message on submit in order to allow users to add multiple lines by pressing 'enter', and at the same time in order to avoid sending one with typo. Which is a good UX practice for both web and mobile platforms. That is the reason why many services do 'alt' + 'enter' shortcut instead: it kills two birds with one stone. Definitely something to explore in the future releases. 😉

from flutter_chat_ui.

jlubeck avatar jlubeck commented on June 7, 2024

@jlubeck Well, it strongly depends on a use case. In our library, we send a message on submit in order to allow users to add multiple lines by pressing 'enter', and at the same time in order to avoid sending one with typo. Which is a good UX practice for both web and mobile platforms. That is the reason why many services do 'alt' + 'enter' shortcut instead: it kills two birds with one stone. Definitely something to explore in the future releases. 😉

Agreed that you need options. Alt + enter would work too. Some platforms (both Telegram and Whatsapp, which are the biggest out there) actually use Alt + Enter (or Shift + Enter) to make the extra lines, and leaves the Enter to send it. If you make a typo, they allow you to edit messages. (which is also a huge plus and something you should consider, but I can make a new ticket for that)

from flutter_chat_ui.

dariakhimych avatar dariakhimych commented on June 7, 2024

@jlubeck I am sure they allow to choose the type of shortcut you find the best for you. In terms of editing messages, we're aware of its importance. So no need for an extra ticket. 😉

from flutter_chat_ui.

jlubeck avatar jlubeck commented on June 7, 2024

@jlubeck I am sure they allow to choose the type of shortcut you find the best for you. In terms of editing messages, we're aware of its importance. So no need for an extra ticket. 😉

Giving that option to the devs, and be able to change on runtime (so dev can create a settings page for the user) would be amazing

from flutter_chat_ui.

m-j-g avatar m-j-g commented on June 7, 2024

Just some extra info into what has already been said. The expectation from users is going to be that pressing enter sends the message and shift+enter or alt+enter adds a line. This is how all the major chat platforms work and it feels really weird on web to press enter and it not to send the message. Can check out Slack, Messages, Whasapp, Facebook Messenger.. I can't find a major chat experience that doesn't send the message on enter, and so it is going to feel really off pressing enter and it not sending.

from flutter_chat_ui.

demchenkoalex avatar demchenkoalex commented on June 7, 2024

Released in v1.1.3.

from flutter_chat_ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.