Hello @dott_Hagaji ,Welcome on Google Cloud Community.
If you want to submit bug or feature request, you should use https://issuetracker.google.com/issues/new?component=187148&template=1161052 with proper subcategory.
--
cheers,
Damian Sztankowski
LinkedIn medium.com Cloudskillsboost Sessionize Youtube
Hi @dott_Hagaji,
Sorry to hear that the behavior of enter key during IME Input is not working as expected in Dialogflow Messenger which can block your current progress. As what @DamianS mentioned, you may file this using our issue tracker so our engineering team can look into this. Before filing, please take note on what to expect when opening an issue.
On the other hand, you may consider implementing this approach that may help you with this issue.
dfMessenger.addEventListener('typingStart', () => {
isTyping = true; //user starts composing a message in the chat input field
});
dfMessenger.addEventListener('typingEnd', () => {
isTyping = false; //user finishes composing a message (e.g., stops typing)
});
dfMessenger.addEventListener('df-user-input-entered', function (event) {
if (isTyping) {
// Cancel sending if converting
event.preventDefault();
} else {
// code to send the user's message
}
});
where event.preventDefault() prevents the message from being sent to the Dialogflow agent.Hope this helps.