Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Intercepting keystrokes in SWT (StyledText)
Intercepting keystrokes in SWT (StyledText) [message #466716] Sun, 15 January 2006 20:19 Go to next message
Greg Akins is currently offline Greg Akins
Messages: 4
Registered: July 2009
Junior Member
This is probably another stupid question, but I'm getting nothing
searching on google.

Using a KeyAdapter, I'd like to intercept a '/t' and replace it with "/t|"

Is that possible and is this the best way to append additional text
while a user is editing a StyledText widget

Thanks in advance for the help

-greg
Re: Intercepting keystrokes in SWT (StyledText) [message #466802 is a reply to message #466716] Tue, 17 January 2006 14:33 Go to previous message
Steve Northover is currently offline Steve Northover
Messages: 1636
Registered: July 2009
Senior Member
See the SWT.Verify event.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet19. java
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet179 .java

"Greg Akins" <eclipse.org@insomnia-consulting.org> wrote in message
news:dqg6fc$pf1$1@utils.eclipse.org...
> This is probably another stupid question, but I'm getting nothing
> searching on google.
>
> Using a KeyAdapter, I'd like to intercept a '/t' and replace it with "/t|"
>
> Is that possible and is this the best way to append additional text
> while a user is editing a StyledText widget
>
> Thanks in advance for the help
>
> -greg
Previous Topic:"setAdvanced" works within eclipse but not in a jar
Next Topic:Preventing Escape key on dialogs
Goto Forum:
  


Current Time: Fri Apr 18 14:22:57 EDT 2014

Powered by FUDForum. Page generated in 0.03265 seconds