cancel
Showing results for 
Search instead for 
Did you mean: 

Capturing Enter Key Press

Former Member
0 Kudos

Hi

Is there a way where we can capture the Enter Key press of the Keyboard and call an event on the Enter Key Press??

For fields such as input field there is onEnter field where an event can be called, but we have a requirement where in we need to call an event on click of enter key, irrespective of where the focus on the page is on.

Any inpus on this will be helpful.

Thanks & Regards,

Gayathri Shanbhag

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The container base class IWDScrollContainer has a property "defaultButtonId" which can be used to set the button whose action is triggered when ENTER is pressed inside the container. (For IWDTransparentContainer you have to additionally set "isLayoutContainer" to false to make this work).

See the Javadoc for more information.

Former Member
0 Kudos

Hi

Thanks!! The issue is resolved.

Setting the default button ID helps in to detect the Enter Key Press in the container.

Thanks & Regards,

Gayathri Shanbhag

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gayathri,

See if the following link helps:

https://cw.sdn.sap.com/cw/docs/DOC-107045

Regards,

Himanshu