matiastucci / vue-input-tag

:bookmark: Vue.js 2.0 Input Tag Component
https://tucci.me/vue-input-tag
MIT License
536 stars 135 forks source link

Comma key issue (188) #64

Closed kaskar2008 closed 5 years ago

kaskar2008 commented 6 years ago

Version of Vue I'm using?: ^2.5.x

Version of vue-input-tag I'm using?: 1.0.3

It's not working correctly in a different language, where there is another character on the key comma, so I can't use this key for a tag, because of the keycode it's returning - 188. Maybe you can update your component to use a char checking along with the keycodes? I mean, it's not right to use the same array of keycodes to determine keys and chars.

I understand that this issue is kind of similar to #32 but it's not a fix if i need a comma as a trigger.

matiastucci commented 5 years ago

Can't you use addTagOnKeys to pass a custom array? I know it's not the best but at least for now.