You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Messaging room (Chat), textarea cannot detect Cmd+Enter but Ctrl+Enter.
Actually, textarea in Chat waits for keypress event, but keypress event is no longer fired for non-printable keys (except Enter, Shift+Enter, Ctrl+Enter).
💡 Summary
In Messaging room (Chat),
textarea
cannot detect Cmd+Enter but Ctrl+Enter.Actually,
textarea
in Chat waits forkeypress
event, butkeypress
event is no longer fired for non-printable keys (except Enter, Shift+Enter, Ctrl+Enter).Also,
keypress
event andonkeypress
event handler are deprecated. Insteadonkeydown
is recommended. See https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onkeypress🙂 Expected Behavior
Cmd+Enter should send a message.
Cmd+Enter does not work, and Ctrl+Enter just works fine.
📝 Steps to Reproduce
📌 Environment
The text was updated successfully, but these errors were encountered: