I just tried to write some cards in Japanese using macOS’s IME, and Kinopio was intercepting the enter/return inputs in odd ways. Once I had finished writing a word and wanted to accept the provided kanji, I would hit enter to do so, and Kinopio would act like I was hitting enter to add a new card below the one I was current editing. If this was the first word of the card, the card I was editing would disappear, and it would put the completed word into the new one below. Or sometimes it might have ended up with an empty card below the one I was originally trying to edit? If I was adding a second word, it might put that word into the card I was editing and a new card below that one. The only real way to reliably write Japanese is to constantly flip the IME between Japanese and English modes in order to not have the enter/return input be seen by Kinopio.
in js text editing i believe this is called a ‘composition event’. in the card textarea, the code should ignore the enter key if it happens within 1s of a composition event. I’ve added browser console logging so when you press enter you should see a ‘
enter’ line. could you show me what that returns?
