Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » wizard focus
wizard focus [message #269938] Fri, 03 September 2004 05:54 Go to next message
Eclipse UserFriend
Originally posted by: hutter.sbox.tugraz.at

is there a way to deactivate the focus on the finish-button? My Problem is
that I have a table in my wizard and everytime I press the enter-key the
wizard exists cause of the focus on the finish-button.

thx,
michi
Re: wizard focus [message #269940 is a reply to message #269938] Fri, 03 September 2004 06:24 Go to previous messageGo to next message
Eclipse UserFriend
Michael Hutter wrote:
> is there a way to deactivate the focus on the finish-button? My Problem is
> that I have a table in my wizard and everytime I press the enter-key the
> wizard exists cause of the focus on the finish-button.

table.addTraverseListener(new TraverseListener() {
public void keyTraversed(TraverseEvent e) {
if (e.detail == SWT.TRAVERSE_RETURN
&& e.stateMask == SWT.NONE) {
// do what you want on enter-key
e.detail= SWT.TRAVERSE_NONE;
}
}
});

HTH,
Markus
Re: wizard focus [message #269984 is a reply to message #269940] Fri, 03 September 2004 07:30 Go to previous message
Eclipse UserFriend
Originally posted by: hutter.sbox.tugraz.at

thanks! that's it!

"Markus Keller" <markus_keller@ch.ibm.com> schrieb im Newsbeitrag
news:ch9ghh$4th$1@eclipse.org...
> Michael Hutter wrote:
> > is there a way to deactivate the focus on the finish-button? My Problem
is
> > that I have a table in my wizard and everytime I press the enter-key the
> > wizard exists cause of the focus on the finish-button.
>
> table.addTraverseListener(new TraverseListener() {
> public void keyTraversed(TraverseEvent e) {
> if (e.detail == SWT.TRAVERSE_RETURN
> && e.stateMask == SWT.NONE) {
> // do what you want on enter-key
> e.detail= SWT.TRAVERSE_NONE;
> }
> }
> });
>
> HTH,
> Markus
Previous Topic:java.lang.NoClassDefFoundError: javax/mail/Part
Next Topic:Possible to change the icons of a marker in the "Problems" view?
Goto Forum:
  


Current Time: Thu Sep 18 10:20:14 EDT 2025

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

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

Back to the top