Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
145
igCombo focus next input when return/enter key pressed
posted

Hi, I've been looking a way to do that, i can manage it with igNumericEditor but not with igCombo.


$("#ddlMonedaMonto").igCombo({

dataSource: data,
valueKey: "IdMoneda",
textKey: "Nombre",
selectedItems: [{ index: 0 }], //default moneda = USD
keydown: function (evt, ui) {
if (ui.key == 13) {
$(document.activeElement).closest(".input-group").next().find("input").focus()
}
}
});

 

Parents
  • 29417
    Offline posted

    Hello Mario ,

     Thank you for posting in our forum. 

    The ui object does not have a key property. Instead it has a keyCode property that contains the code of the key that was pressed.

    So the keydown event should look like this:

    keydown: function (evt, ui) {

                                                                     if (ui.keyCode == 13) {                 

                                                                    //...

                                                                     }

                                    } 

    Let me know if you have any questions.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer II

    Infragistics, Inc.

    http://www.infragistics.com/support

     

     

Reply Children