Login  Register

Re: Unwanted feature for KeyEvent.VK_DELETE

Posted by Michael Schmid on Apr 19, 2018; 7:13pm
URL: http://imagej.273.s1.nabble.com/Unwanted-feature-for-KeyEvent-VK-DELETE-tp5020532p5020533.html

Hi Philippe,

yes, I admit, I'm the culprit. The reason was that many other programs I
am used to require the "delete forward" key to delete things (except on
Macintosh), e.g. deleting items from a list. ImageJ was kind of an
exception, so I often ended up using the wrong key, and I was wondering
why it did not delete.

But maybe I am the only one? What do the others think?


Philippe: Would it be acceptable to have some modifier key (SHIFT, ALT,
CTRL) for the special 'delete' function of your plugin?
I think it would not be a problem to restrict the ImageJ keyboard
shortcut to the delete key being pressed without such modifier.
(currently it does not check for modifiers).


Michael
________________________________________________________________
On 19/04/2018 17:02, Philippe CARL wrote:

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

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