Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Escape to go to default tool
Escape to go to default tool [message #104650] Wed, 12 November 2003 15:30 Go to next message
Maged Elaasar is currently offline Maged ElaasarFriend
Messages: 529
Registered: July 2009
Senior Member
Hello,

When you select a tool from the palette, there is no way to go back to the
default tool (selection tool) unless explicitly selecting it. Should there
be support for the Esc key in tools to go back to the default tool?

Maged
Re: Escape to go to default tool [message #104682 is a reply to message #104650] Wed, 12 November 2003 17:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Escape works for me, provided that the graphical viewer has keyboard focus.

"Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
news:botjjq$ghb$1@eclipse.org...
> Hello,
>
> When you select a tool from the palette, there is no way to go back to the
> default tool (selection tool) unless explicitly selecting it. Should there
> be support for the Esc key in tools to go back to the default tool?
>
> Maged
>
>
Re: Escape to go to default tool [message #104692 is a reply to message #104682] Wed, 12 November 2003 17:44 Go to previous messageGo to next message
Maged Elaasar is currently offline Maged ElaasarFriend
Messages: 529
Registered: July 2009
Senior Member
Can't it be supported also if the palette viewer has a focus, since the
normal use case would be to select a tool, hover on the graphical viewer and
then pressing Esc to cancel. Currently, the user has to use the "tab" key to
give focus first to the graphical viewer before Esc works. What do you
think?


"Randy Hudson" <none@us.ibm.com> wrote in message
news:botqp3$pub$1@eclipse.org...
> Escape works for me, provided that the graphical viewer has keyboard
focus.
>
> "Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
> news:botjjq$ghb$1@eclipse.org...
> > Hello,
> >
> > When you select a tool from the palette, there is no way to go back to
the
> > default tool (selection tool) unless explicitly selecting it. Should
there
> > be support for the Esc key in tools to go back to the default tool?
> >
> > Maged
> >
> >
>
>
Re: Escape to go to default tool [message #104701 is a reply to message #104692] Wed, 12 November 2003 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You could map a key->action in the palette's keyhandler.
Or, create a ResetToolAction and add it to the keybinding service, so that
ESC is received regardless of focus. But, this would interfere with
celleditors, which need to receive ESC
"Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
news:botrep$qpk$1@eclipse.org...
> Can't it be supported also if the palette viewer has a focus, since the
> normal use case would be to select a tool, hover on the graphical viewer
and
> then pressing Esc to cancel. Currently, the user has to use the "tab" key
to
> give focus first to the graphical viewer before Esc works. What do you
> think?
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:botqp3$pub$1@eclipse.org...
> > Escape works for me, provided that the graphical viewer has keyboard
> focus.
> >
> > "Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
> > news:botjjq$ghb$1@eclipse.org...
> > > Hello,
> > >
> > > When you select a tool from the palette, there is no way to go back to
> the
> > > default tool (selection tool) unless explicitly selecting it. Should
> there
> > > be support for the Esc key in tools to go back to the default tool?
> > >
> > > Maged
> > >
> > >
> >
> >
>
>
Re: Escape to go to default tool [message #104723 is a reply to message #104701] Wed, 12 November 2003 19:47 Go to previous messageGo to next message
Maged Elaasar is currently offline Maged ElaasarFriend
Messages: 529
Registered: July 2009
Senior Member
The first solution seems more reasonable (i.e: let the palette key handler
do it).
Shouldn't that be done in the default PaletteKeyHandler in GEF?


"Randy Hudson" <none@us.ibm.com> wrote in message
news:botrvv$rgp$1@eclipse.org...
> You could map a key->action in the palette's keyhandler.
> Or, create a ResetToolAction and add it to the keybinding service, so that
> ESC is received regardless of focus. But, this would interfere with
> celleditors, which need to receive ESC
> "Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
> news:botrep$qpk$1@eclipse.org...
> > Can't it be supported also if the palette viewer has a focus, since the
> > normal use case would be to select a tool, hover on the graphical viewer
> and
> > then pressing Esc to cancel. Currently, the user has to use the "tab"
key
> to
> > give focus first to the graphical viewer before Esc works. What do you
> > think?
> >
> >
> > "Randy Hudson" <none@us.ibm.com> wrote in message
> > news:botqp3$pub$1@eclipse.org...
> > > Escape works for me, provided that the graphical viewer has keyboard
> > focus.
> > >
> > > "Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
> > > news:botjjq$ghb$1@eclipse.org...
> > > > Hello,
> > > >
> > > > When you select a tool from the palette, there is no way to go back
to
> > the
> > > > default tool (selection tool) unless explicitly selecting it. Should
> > there
> > > > be support for the Esc key in tools to go back to the default tool?
> > > >
> > > > Maged
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: Escape to go to default tool [message #104733 is a reply to message #104723] Wed, 12 November 2003 21:58 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Sure, why not? Open a bugzilla. For 2.1.x you'll have to add it yourself.

"Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
news:bou2lm$3jp$1@eclipse.org...
> The first solution seems more reasonable (i.e: let the palette key handler
> do it).
> Shouldn't that be done in the default PaletteKeyHandler in GEF?
>
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:botrvv$rgp$1@eclipse.org...
> > You could map a key->action in the palette's keyhandler.
> > Or, create a ResetToolAction and add it to the keybinding service, so
that
> > ESC is received regardless of focus. But, this would interfere with
> > celleditors, which need to receive ESC
> > "Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
> > news:botrep$qpk$1@eclipse.org...
> > > Can't it be supported also if the palette viewer has a focus, since
the
> > > normal use case would be to select a tool, hover on the graphical
viewer
> > and
> > > then pressing Esc to cancel. Currently, the user has to use the "tab"
> key
> > to
> > > give focus first to the graphical viewer before Esc works. What do you
> > > think?
> > >
> > >
> > > "Randy Hudson" <none@us.ibm.com> wrote in message
> > > news:botqp3$pub$1@eclipse.org...
> > > > Escape works for me, provided that the graphical viewer has keyboard
> > > focus.
> > > >
> > > > "Maged Elaasar" <melaasar@ca.ibm.com> wrote in message
> > > > news:botjjq$ghb$1@eclipse.org...
> > > > > Hello,
> > > > >
> > > > > When you select a tool from the palette, there is no way to go
back
> to
> > > the
> > > > > default tool (selection tool) unless explicitly selecting it.
Should
> > > there
> > > > > be support for the Esc key in tools to go back to the default
tool?
> > > > >
> > > > > Maged
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:How can I remove "run" menu?
Next Topic:Show root TreeEditPart in outline view
Goto Forum:
  


Current Time: Wed Jan 15 08:10:56 GMT 2025

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

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

Back to the top