components icon indicating copy to clipboard operation
components copied to clipboard

Default MatChipInput wrongly delimits cyrillic input

Open coldhamix opened this issue 8 years ago • 3 comments

Bug, feature request, or proposal:

Bug

What is the current behavior?

If you type in MatChipInput any cyrillic word containing letter "б", it gets wrongly delimited by this letter. This happens because in russian keyboard layout б is on the same key as english comma. For example, typing the word работа results in [ра] ота.

What are the steps to reproduce?

  1. Go to https://material.angular.io/components/chips/overview
  2. Type any cyrillic word containing letter "б".

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7.0.2 Material 7.0.2 All browsers

coldhamix avatar Nov 05 '18 18:11 coldhamix

We use the keyboard event's keyCode to determine the delimiter, which means that we can't really handle all languages automatically. You can use the matChipInputSeparatorKeyCodes input to set a different key code.

crisbeto avatar Nov 08 '18 12:11 crisbeto

It would be nice to have a way to designate a separator based on the character entered. Since the comma is on different keycodes on different keyboards. This makes it somewhat complicated for applications that are deployed in multiple regions including US and Russia.

inradius avatar Mar 28 '19 12:03 inradius

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.