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 |
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 |
Hi Philippe,
> yes, I admit, I'm the culprit. No problem about this!!! And since I answer you, I would like to use this opportunity to congratulate and thank you for the gorgeous (you did it again!) last big update you made on ImageJ (i.e. the one on the tables). > Philippe: Would it be acceptable to have some modifier key (SHIFT, ALT, > CTRL) for the special 'delete' function of your plugin? I would have no problems with having to use a key modifier together with the delete key within my plugin. Actually I had already tried this option before sending my first E-mail, but the "clear" feature of the delete key is still working even if an InputEvent value has been set for my code (unless I'm missing something in my code). My best regards, Philippe -----Message d'origine----- De : ImageJ Interest Group [mailto:[hidden email]] De la part de Michael Schmid Envoyé : jeudi 19 avril 2018 21:13 À : [hidden email] Objet : Re: Unwanted feature for KeyEvent.VK_DELETE 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 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Hi Philippe,
ok, I have sent a suggestion to Wayne, to make the 'delete' and 'backspace' shortcuts work only without modifier keys. I hope that this does not break something in another place. Concerning the new table macro functions: The kudos should go to Wayne! (My only contribution was to provide the initial code for the 'apply macro', and writing several emails discussing the macro integration.) Best, Michael ________________________________________________________________ On 20/04/2018 10:28, Philippe CARL wrote: > Hi Philippe, > >> yes, I admit, I'm the culprit. > > No problem about this!!! > And since I answer you, I would like to use this opportunity to congratulate and thank you for the gorgeous (you did it again!) last big update you made on ImageJ (i.e. the one on the tables). > >> Philippe: Would it be acceptable to have some modifier key (SHIFT, ALT, >> CTRL) for the special 'delete' function of your plugin? > > I would have no problems with having to use a key modifier together with the delete key within my plugin. > Actually I had already tried this option before sending my first E-mail, but the "clear" feature of the delete key is still working even if an InputEvent value has been set for my code (unless I'm missing something in my code). > > My best regards, > > Philippe > > -----Message d'origine----- > De : ImageJ Interest Group [mailto:[hidden email]] De la part de Michael Schmid > Envoyé : jeudi 19 avril 2018 21:13 > À : [hidden email] > Objet : Re: Unwanted feature for KeyEvent.VK_DELETE > > 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 > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |