mervick / emojionearea

Emoji Picker Plugin for jQuery
https://jsfiddle.net/mervick/1v03Lqnu/765/
MIT License
953 stars 257 forks source link

onkey press (enter) not working for some reason #425

Closed wpgn closed 3 years ago

wpgn commented 3 years ago

here my code for some reason when i press enter it dont do anything.

$("#msg").emojioneArea({ placeholder: "Enter message", maxCount: 15, search: false, spellcheck: true, standalone: false, shortnames: false, shortcuts: false, autocomplete: true, autocorrect: false, autocapitalize: false, hideSource: false, recentEmojis: false, useInternalCDN: true, autocompleteTones: false, filtersPosition: "top", searchPosition: "bottom", tones: false, inline: true, tonesStyle: "bullet", hidePickerOnBlur: false, pickerPosition: "top", events: {keypress: function (editor, event) { if (event.which === 13) { document.getElementById("sendButton").click(); event.preventDefault(); } } } });`

is this a knowing issue as i seen a few posts about it, thanks.
wpgn commented 3 years ago

ok it seams to be when i click on the area to send text and type message it and press enter it dont send but if i unclick the area and then reclick the area it will then send the message maybe a highlight bug ???