Jump to content

how to simulate enter key = #13 in checkbox


SayeyeZohor

Recommended Posts

54 minutes ago, SayeyeZohor said:

how to simulate enter key = #13 in checkbox to change cursor focus to next component?

Can you please explain in more detail?

Maybe you wanted like in this demo?:

\FMSoft\Framework\uniGUI\Demos\Desktop\FormNavigate

 

Link to comment
Share on other sites

// Developed by Eduardo Belo
// UniCheckBox > ClientEvents > UniEvents
function beforeInit(sender, config) {
    config.keyMap = {
        ENTER: {
            handler: function() {
                if (sender.checked) {
                    sender.setValue(false);
                } else {
                    sender.setValue(true);
                }
            }
        }
    }
}

Best Regards,

Eduardo Belo

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...