function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC AppsdevSFDC Appsdev 

Focus on Next Input on Enter Key in Lightning

Hello
I need help related to focusing on next input on Tab or Enter Key press.  I have done this same in Visualforce Page by getting the next element's dom Id and setting the focus, which is seems to be not possible in Lightning Components with LockerService Enabled. I have a List which is rendered with aura:iteration of table with each column as a UI:input component. 
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi ,

May I suggest you please refer the below link to reference. hope it will help.

Please mark it as best answer if the information is informative.

Thanks
Rahul Kumar
SFDC AppsdevSFDC Appsdev
@rahul I was able to find the key number of which type and able to find to which field i should focus on but not the focus part. the regular JS focus is element.focus() will focus on that input but in lightning with Locker Service it is not working when i debug the input element it shows as Proxy object.