jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Keyboard loyout problem
Tagged: cell edit, grid, keyboard edit, loyout
This topic contains 7 replies, has 2 voices, and was last updated by Katashov Dima 10 years, 10 months ago.
-
AuthorKeyboard loyout problem Posts
-
Hi!
I’m using jqWidgets 3.4.0, and i have a problem with your grid.
When I try to input some text in ukrainian keyboard loyout, the first symbol input in english loyout and the others in ukrainian. Like as “qцуке”.
This problem is happend with onkey cell edit, not dblclick or entered in cell.How I can fix that?
P.S. Sry for my bad english. Just w8 you answer.
Thank you.Hi hawok14,
You can implement the “initeditor” column callback function so you can manage the default value of the editor by calling the editor’s val method and passing “” or some other character.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comTy for your fast answer, but I think you dont understand my problem. I use keynavigation with arrows, and when i select any cell, i enter some text with keybord without entering in this cell with Enter key or F2 or dbl clicking. Only push key with letters on keyboard with ukrainian language loyout. For example, i need enter in sell “йцукен”, i push this keys but see “qцукен”.
Hi hawok14,
It seems that you did not understand my answer. “initeditor” allows you to override what you see as editor value on your Grid.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comCan you write or link some usefull example?
Ty so much!You can find a sample implementation of initeditor below:
{ text: 'Quantity', datafield: 'quantity', width: 70, cellsalign: 'right', columntype: 'numberinput', initeditor: function (row, cellvalue, editor, celltext, pressedChar) { if (pressedChar && pressedChar.toString().length > 0) { editor.val(""); } } }
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you so much!
Just try this code.I try your method, but this is not wanted thing.
I see documentation and code in jqWidgets and understand, why this happand. When I’m try to change cell with any letters key, the first symbol is the symbol of “e.keyCode” function value.
Or “pressedChar” == “e.keyCode”.
How i can fix this for more useful with cyrillic language in your beautiful widgets?
Ty -
AuthorPosts
You must be logged in to reply to this topic.