jQWidgets Forums

jQuery UI Widgets Forums Grid Prevent "del" key functionnality

This topic contains 3 replies, has 2 voices, and was last updated by  ashensugar 11 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Prevent "del" key functionnality #29109

    ashensugar
    Participant

    Hi everyone, i’m having trouble disabling update on “del” press while a row is selected.

    I have a grid showing questions and their parameters, and in row details we can handle answers parameters.

    I desperately want to disable this del key for future use of the grid by anyone without this strange behaviour.

    i’m trying this :

    		keyboardnavigation: false,
    handlekeyboardnavigation: function(event){
    var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
    if (key == 13) {
    return true;
    }
    else if (key == 27) {
    return true;
    }
    else if (key == 46) {
    event.stopPropagation();
    event.preventDefault();
    return false;
    }
    },

    but that wont work, idk why.
    Please give me a clue on how to disable this del key functionnality !

    PS : I aready saw that
    and that too

    Prevent "del" key functionnality #29111

    Peter Stoev
    Keymaster

    Hi ashensugar,

    If you use the newest version, you can set “enablekeyboarddelete” to false.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Prevent "del" key functionnality #29118

    ashensugar
    Participant

    Ok thanks i’m gonna try last version then, have a nice day

    Prevent "del" key functionnality #29120

    ashensugar
    Participant

    Works perfectly, then do you have any parameter to do the same about “Space” key updating the row ? that would be perfect.

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

You must be logged in to reply to this topic.