rawKeyDown in standalones
Richmond
richmondmathewson at gmail.com
Sun May 19 10:48:13 EDT 2013
This is a cross platform problem (well, Mac, Windows and Linux).
In a stack one can trap keyDowns from the numeric keys that run along
the top of a standard keyboard
like this:
on rawKeyDown RK
if RK = 49 then
send "mouseUp" to button "DO_SOME_SCRIPT"
end if
end rawKeyDown
[ 49 is the keycode for '1' ]
and the code in button "DO_SOME_SCRIPT" will be executed.
In standalones it will NOT;
end users will get nothing, or a '1' in their textField.
Richmond.
More information about the use-livecode
mailing list