Login  Register

Unwanted feature for KeyEvent.VK_DELETE

Posted by CARL Philippe (LBP) on Apr 19, 2018; 3:02pm
URL: http://imagej.273.s1.nabble.com/Unwanted-feature-for-KeyEvent-VK-DELETE-tp5020532.html

Dear all (probably Michael),

I have (i.e. had) a plugin displaying several overlays drawn on top of a
stack of pictures and within which the user could draw a ROI and erase the
overlays found inside the drawn ROI by simply pressing the delete key.

Very unfortunately since the update "1.51u 13 February 2018" with the
feature:

"Thanks to Michael Schmid, the delete key on Windows keyboards can be used
as a substitute for backspace as a shortcut for the Image>Clear command, for
deleting ROIs from overlays and for deleting lines in Results Tables and in
the Log window. In addition, the ',' key on european numeric keypads is
mapped to the '.' key."

[also I guess it is rather reproducing the "Edit>Clear command" not the
"Image>Clear command" one]

The use of the delete key within this plugin will as well apply a clear
command to the displayed slice of the stack which in this particular case of
this plugin is quite unwanted.

Thus would there a way for me to deactivate the clear command associated to
the delete key when it is launched from this "old" plugin?

Or what alternate options could I have to solve this issue?

I thank you very much in advance for your ideas and lightings.

My best regards,

Philippe

 

Philippe CARL

Laboratoire de Bioimagerie et Pathologies

UMR 7021 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