Re: Using Shift as modifier with F-keys in macros

Posted by Wayne Rasband-2 on
URL: http://imagej.273.s1.nabble.com/Using-Shift-as-modifier-with-F-keys-in-macros-tp5021916p5021925.html

> On Mar 20, 2019, at 8:13 AM, Stein Rørvik <[hidden email]> wrote:
>
> Install this macro; and launch it via F1 with and without a modifier key:
>
> macro "Test Macro [F1]" {
>                message = "";
>                if (isKeyDown("alt")) message += ", alt";
>                if (isKeyDown("shift")) message += ", shift";
>                if (isKeyDown("space")) message += ", space";
>                showMessage("Macro F1" + message);
> }
>
> It works as expected alone and with the alt and space keys, but not shift.
> With shift-F1 the macro does not launch at all.

This bug is fixed in the latest ImageJ daily build (1.52o3).

-wayne

> Is shift-F1 mapped to a different scan code on the Windows keyboard,
> or is there any other reason this does not work as expected?
> What happens under Mac and Linux?
>
> I am using daily build ImageJ 1.52m with Java 1.8 on Windows 7/64-bit.
>
>
> Stein

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