react-japanese-textarea

japanese textarea which fires an OnEnter event when pressing the Enter button only when not inside the the Japanese IME.

Usage no npm install needed!

<script type="module">
  import reactJapaneseTextarea from 'https://cdn.skypack.dev/react-japanese-textarea';
</script>

README

This react component is adapted from this jQuery plugin: https://garafu.blogspot.jp/2015/09/jquery-complete.html

While typing Japanese the 'Enter' keypress event is fired when selecting words from the Japanese IME popup: For a more detailed explanation, see the blog above.