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

Re : CommandButton & Enter Key

Hello Everyone,


I Have a inputField, in which I'm performing my logic. My logic is when User enters a character in textField it will search in one of my custom Object & returns a list. This list contains the Names which starts with of entered Char. And thiswill display like a drop-down.


When I'm selecting from mouse it's working fine,

But, when I'm using arrow keys for selecting and when press enter that value is not displaying in TextFIeld. 


I think You got my point. Please help me.





did you check using TAB instead of Enter key.


Yes, for tab its working fine.


is that fine or you want to use the Enter Key? What is currently happening when you press the enter key? I mean is it searching the custom object again and bringing the suggested list?


All the Searched values displays as a Drop-Down, and when I selet a value and press enter that value has to populate in TextBox. When i Click on Enter. the submit button taking that Enter key submiting to thepage to Controller


are you rerendering the text box once the value int he drop down is selected and enter key is pressed? it would be helpful if you post your code.