text field listner over enter key when it is in focus

Hi every one
I want to implement a text field listener which will trigger only when you press enter key and text field must be in focus. help me…

Hi,

In short, you almost certainly want to be lookin at Keybaord Shortcuts.
This way to the relevant part of the Demo app
, and
this way to the javadoc for ShortcutListener

Cheers,

Charles.

Thanks for reply

But i m not looking for the shortcut listener because first i add shortcut listener and in case when text field is not in focus and you press shortcut say enter key ,it trigours the field listener

i just found the solution by implementing Value change listener and set Immediate true for the textField, it only listen when enter key pressed and field is in focus and it did not affect other enter key listeners.