Is there any way to query whether the Shift key is depressed when a tool
is selected in a Palette? Basically, I want to know if a key is pressed
at the point of activating the tool.
I've got a custom Tool that extends AbstractTool but can't seem to find
a way to query the key state when activate() is called on the tool.
On 11/12/2010 15:52, Phillipus wrote:
> Is there any way to query whether the Shift key is depressed when a tool
> is selected in a Palette? Basically, I want to know if a key is pressed
> at the point of activating the tool.
>
> I've got a custom Tool that extends AbstractTool but can't seem to find
> a way to query the key state when activate() is called on the tool.
>
> Thanks,
>
> PB
I did it another way. I added a listener in my GraphicalEditor: