abinavseelan / react-input-trigger

React component for handling character triggers inside textareas and input fields. 🐼
MIT License
88 stars 20 forks source link

keyCode differs on AZERTY keyboard #23

Open lagroms opened 2 years ago

lagroms commented 2 years ago

Hello,

I'm trying to implement a mention system on my react app. I noticed that the keycode:50 and shiftkey:true will still be triggered even though the input will be '2' on an azerty keyboard. Knowing people might potentially use an azerty keyboard this is pretty blocking. Is there a way to trigger not based on a keyCode, but with a simple string comparison ?

Thanks