aehlke / tag-it

A jQuery UI plugin to handle multi-tag fields as well as tag suggestions/autocomplete.
http://aehlke.github.com/tag-it/
MIT License
2.48k stars 825 forks source link

Russian text sometimes not working! б = , in english keyboard [Bug] #403

Open fanux365 opened 6 years ago

fanux365 commented 6 years ago

When I press 'б' in russian keyboard it's trigger ','

shadialnamrouti commented 5 years ago

Comment out this line inside the plugin: event.which == $.ui.keyCode.COMMA ||

Hamulus commented 5 years ago

I would change the line to event.key === ',' It will continue handle commas in any language and will allow to use this key in allother cases (different keyboard layout, shift key pressed etc)