Question

I use KendoNumericTextBox to read real numbers.

When keyboar switched to russian, i cann't enter russian ',' or '.'(english key '/' or '?') but can enter 'б' or 'ю' (english key ',' or '.')

<script src="http://cdn.kendostatic.com/<version>/js/cultures/kendo.culture.en-GB.min.js"></script>

<input id="numeric" type="number" value="17" min="0" max="100" step="1" />

<script type="text/javascript">
kendo.culture("ru-RU");
$("#numeric").kendoNumericTextBox();
</script>
Was it helpful?

Solution

After day of search:

It's bug of framework. It check key in onkeypress event and allow only 188 or 190 key ('.' and ','). But on russian keyboard it is 'б' and 'ю' key. Comma and dot is on 191 and 191+shift keis.

For resolve it I change onkeydown method to allow 191 key too and add onkeypress method to forbid {'б','ю','Б','Ю','/','?'}

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top