Login  Register

Re: disabling (and re-enabling?) shortcuts

Posted by Jerome Mutterer-3 on May 13, 2016; 9:21am
URL: http://imagej.273.s1.nabble.com/disabling-and-re-enabling-shortcuts-tp5016418p5016420.html

Hi Kenneth,
You could remove the key listeners as in this example plugin :
http://rsbweb.nih.gov/ij/plugins/key-listener.html
Sincerely
Jerome.


On 13 May 2016 at 07:24, Kenneth Sloan <[hidden email]> wrote:

> One of my customers complains that accidental keypresses do strange things.
>
> Is there a way to disable *all* keyboard shortcuts under Java plugin
> control?
>
> I’d like to simply make them all “do nothing”.
>
> It would be nice to restore them on plugin exit - but that would be a
> frill.  This user
> would be happy to simply re-start Fiji.
>
> Can I globally require control (command) to access keyboard shortcuts?
> That would solve the problem.  Even better if I could turn this on/off on
> the start/exit of my plugin.
>
> I suppose the brute force way to do that would be to write a macro for
> every keypress, with an empty action.  I’m hoping for something cleaner.
>
> --
> Kenneth Sloan
> [hidden email] <mailto:[hidden email]>
> Vision is the art of seeing what is invisible to others.
>
>
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>



--
Jerome Mutterer
CNRS - Institut de biologie moléculaire des plantes
12, rue du Général Zimmer
67084 Strasbourg Cedex
www.ibmp.cnrs.fr

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