https://github.com/jrincayc/ucblogo-code
Revision 68a93248641e91314d2700e8a3c6ba0c73ba5422 authored by Joshua J. Cogliati on 27 December 2021, 16:56:40 UTC, committed by Joshua J. Cogliati on 27 December 2021, 16:56:40 UTC
1 parent e3a5d7a
Tip revision: 68a93248641e91314d2700e8a3c6ba0c73ba5422 authored by Joshua J. Cogliati on 27 December 2021, 16:56:40 UTC
Updating version to 6.2.2pre1
Updating version to 6.2.2pre1
Tip revision: 68a9324
keyact
KEYACT (variable)
if nonempty, should be an instruction list that will be evaluated
whenever a key is pressed on the keyboard. The instruction list
can use READCHAR to find out what key was pressed. Note that only
keys that produce characters qualify; pressing SHIFT or CONTROL
alone will not cause KEYACT to be evaluated.
Note that it's possible for the user to press a key during the
evaluation of the instruction list. If this would confuse your
program, prevent it by temporarily setting KEYACT to the empty
list. One easy way to do that is the following:
make "keyact [key.action]
to key.action [:keyact []]
... ; whatever you want the key to do
end
Computing file changes ...