Custom input KeyStrokes (ENTER) (ESC)

I want In Custom input Window if the user pressed the ENTER key, a predefined button clicked.
it’s achievable by JS code, and its working in IE, but no luck in Custom input window.

is there any solution to my problem?

// Number 13 is the “Enter” key on the keyboard
if (event.keyCode === 13) {
// Cancel the default action, if needed
event.preventDefault();
// Trigger the button element with a click
document.getElementById(“the button id, which is usually ok or accept buttonn*”).click();
}
});

Can you use User Events activities for the same to trigger the required action when event occurs.

For more details -

https://activities.uipath.com/docs/user-events-ui-automation

Regards,
Karthik Byggari

1 Like

thanks, but it’s not working since a user may hit enter or may click the button. if I run an event monitor in parallel mode, it will wait till the user hit enter.