jQuery UI Widgets Forums Editors NumberInput spin buttons keyboard

This topic contains 4 replies, has 2 voices, and was last updated by  al3dv 10 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • spin buttons keyboard #52269

    al3dv
    Participant

    Hi All,
    when I have the focus inside my NumberInput and press the key up or key down the value change (the spin button is hidden).

    so, is it possibile to disable this behaviour?

    thanks in advance

    spin buttons keyboard #52283

    Dimitar
    Participant

    Hello al3dv,

    This feature of jqxNumberInput cannot be disabled.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    spin buttons keyboard #53138

    al3dv
    Participant

    Hi All, in this way I’m able to detect the keypress/keydown:

    $("#prezzo").on('keydown', function (event) { 
        		       return false;
    });
    			
    $("#prezzo").on('keypress', function (event) { 
        		       return false;
    });
    

    but I’m not able to avoid the spin button behaviour.

    please, exist a workaround?

    thanks in advance

    spin buttons keyboard #53155

    Dimitar
    Participant

    Hi al3dv,

    Unfortunately, there is no known workaround on the matter.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    spin buttons keyboard #53176

    al3dv
    Participant

    Hi Dimitar, I found a workaround.

    I declare my jqxnumberinput in this way:

    
    $("#prezzo").jqxNumberInput({ width: '105px', height: '25px', spinButtonsStep:0, promptChar:" ", spinButtons: false, spinMode: 'simple', groupSeparator: ".", decimalSeparator: ",", decimalDigits: 2, theme: theme});												
    

    spinButtonsStep:0

    In this way when the user tap on key up or key down the value of my field not change.

    thanks
    Ale

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

You must be logged in to reply to this topic.