mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-21 01:50:40 +00:00
Maximilian Mader
724540a8b2
Fix enter key check while composing characters
Chrome on macOS sends a KeyEvent with `key` set to `Enter`, the keyCode `229` and `isComposing` set to `true` when pressing enter while a character composition sequence is active, then an event for the composed key and ends with a Enter key event with the correct key code. This has thrown our Enter key detection off and resulted in sending of the wanted message and a public message with the single composed character as content. Ignoring the Enter key while characters are being composed seems to be safe.
Description
Languages
PHP
52.8%
JavaScript
32.6%
Smarty
11.8%
SCSS
2.5%
Makefile
0.3%