Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Catching shift and ctrl TAB in texteditor
Catching shift and ctrl TAB in texteditor [message #438026] Mon, 14 June 2004 21:16 Go to next message
Eclipse UserFriend
Originally posted by: paull.NOSPAMcodetelligence.com

I use a verifyListener to catch the TAB character in in my TextEditor. When
a control or shift TAB is entered this the listener is not called. What
listener do I have to attach to to grab these inputs?

Paul
www.codetelligence.com
Re: Catching shift and ctrl TAB in texteditor [message #438031 is a reply to message #438026] Tue, 15 June 2004 08:17 Go to previous message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

Use traverse listener like this:

addTraverseListener(new TraverseListener(){
public void keyTraversed(TraverseEvent e) {
switch (e.detail) {
case SWT.TRAVERSE_TAB_NEXT:
// SHIFT+TAB was pressed
break;
case SWT.TRAVERSE_TAB_PREVIOUS:
break;
}

Boby


"Paul L" <paull@NOSPAMcodetelligence.com> wrote in message
news:cal44e$cfk$1@eclipse.org...
> I use a verifyListener to catch the TAB character in in my TextEditor.
When
> a control or shift TAB is entered this the listener is not called. What
> listener do I have to attach to to grab these inputs?
>
> Paul
> www.codetelligence.com
>
>
Previous Topic:Mac OS X: SWT Shell doen
Next Topic:Get values of Variant
Goto Forum:
  


Current Time: Thu Apr 25 07:34:44 GMT 2024

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

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

Back to the top