jQWidgets Forums

jQuery UI Widgets Forums Grid Keyboard loyout problem

This topic contains 7 replies, has 2 voices, and was last updated by  Katashov Dima 10 years, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Keyboard loyout problem #58055

    Katashov Dima
    Participant

    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.

    Keyboard loyout problem #58060

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Keyboard loyout problem #58063

    Katashov Dima
    Participant

    Ty 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цукен”.

    Keyboard loyout problem #58066

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Keyboard loyout problem #58067

    Katashov Dima
    Participant

    Can you write or link some usefull example?
    Ty so much!

    Keyboard loyout problem #58068

    Peter Stoev
    Keymaster

    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 Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Keyboard loyout problem #58072

    Katashov Dima
    Participant

    Thank you so much!
    Just try this code.

    Keyboard loyout problem #58084

    Katashov Dima
    Participant

    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

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.