Skip to main content


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] Mon, 16 January 2006 01:19 Go to next message
Greg Akins is currently offline Greg AkinsFriend
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 19:33 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
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: Thu Apr 25 16:04:10 GMT 2024

Powered by FUDForum. Page generated in 0.02411 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top