altkey() down, up & halfway down

Mike Bonner bonnmike at gmail.com
Sun Dec 2 10:30:50 EST 2012


Late to this discussion but.. Polling (or maybe an external?) is the only
real solution for this problem right?


On Sun, Dec 2, 2012 at 7:59 AM, Richmond <richmondmathewson at gmail.com>wrote:

> If I have this sort of script in my stack:
>
> on rawKeydown
>    if altKey() = down then
>      put "ALT down" into fld "AKD"
>    end if
> end rawKeydown
>
> on Macintosh that ONLY WORKS if I am pressing an alphanumeric key while
> holding the altKey down,
>
> it DOES NOT work if all I do is press the altKey.
>
> Now, Andre Garzia's advice went like this:
>
> "on rawKeydown, check for the altKey and change all the labels of the
> buttons for the actions they will
> perform if that key is down, this way, as soon as someone presses ALT, the
> labels change and they know
> what is happening."
>
> and this is NOT possible on Macintosh, while it is on Linux and Windows.
>
> Richmond.
>
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>



More information about the use-livecode mailing list