Deactivate given Shortcuts within a plugin

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Deactivate given Shortcuts within a plugin

CARL Philippe (LBP)
Dear all,

Within a macro I would like to use some keys (x and y to name them) through
a KeyListener.

Unfortunately these keys are already attributed (Cut and Properties…) within
ImageJ and thus these commands are launched in parallel to the own methods I
would like to launch within the plugin.

Thus is there a way to inactivate a given Shortcut while running a plugin,
with this Shortcut being then again activated once the plugin closed.

I thank you very much in advance for your answers and suggestions.

My brest regards,

Philippe

 

Philippe CARL

Laboratoire de Biophotonique et Pharmacologie

UMR 7213 CNRS - Université de Strasbourg

Faculté de Pharmacie

74 route du Rhin

67401 ILLKIRCH

Tel : +33(0)3 68 85 41 84


--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: Deactivate given Shortcuts within a plugin

Jan Eglinger
Hi Philippe,

there's a discussion on the forum related to this:

http://forum.imagej.net/t/disable-keylistener-during-processing/549?u=imagejan

Hope that helps,
Jan



On 09.03.2016 15:32, Philippe CARL wrote:

> Dear all,
>
> Within a macro I would like to use some keys (x and y to name them) through
> a KeyListener.
>
> Unfortunately these keys are already attributed (Cut and Properties…) within
> ImageJ and thus these commands are launched in parallel to the own methods I
> would like to launch within the plugin.
>
> Thus is there a way to inactivate a given Shortcut while running a plugin,
> with this Shortcut being then again activated once the plugin closed.
>
> I thank you very much in advance for your answers and suggestions.
>
> My brest regards,
>
> Philippe
>
>
>
> Philippe CARL
>
> Laboratoire de Biophotonique et Pharmacologie
>
> UMR 7213 CNRS - Université de Strasbourg
>
> Faculté de Pharmacie
>
> 74 route du Rhin
>
> 67401 ILLKIRCH
>
> Tel : +33(0)3 68 85 41 84
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html