You need the SWT.DefaultSelection event
that does exactly what you want.
Bob Foster <bob@xxxxxxxxxx> Sent by: platform-swt-dev-admin@xxxxxxxxxxx
01/15/2004 04:02 PM
Please respond to platform-swt-dev
Re: [platform-swt-dev] Text widget Listeners
> Hey folks,
> So I've got a text widget that a user is filling out - when he/she
> (it is an SWT.SINGLE style text widget), I want an action to be performed.
> seems like I need a characterEvent to know what characters are being
> then check each event - selection, modify and verify seem to not allow
> look at the text and check if it ends with newline...any ideas on
how I can
> detect this event? Thanks!
AFAIK, the text of an SWT.SINGLE text widget won't ever end with
newline. You probably want to use a verify key listener.
platform-swt-dev mailing list