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.

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to