[comp.sys.mac.hypercard] Eating command keys?

Don.Gilbert@IUBio.Bio.Indiana.Edu (Don Gilbert) (08/17/90)

Anyone know how to disable all command key messages?   I've already tried 
this, without success:
    -- in stack script
    on idle
      if the commandkey is down then
          -- do something
          repeat until the commandkey is up
            -- do another thing
          end repeat
      end if
   end idle

The problems with above are (a) keypresses are stored and passed on to the 
card after the command key is up, and (b) a quick keypresser can get the 
card to act on a command key before the idle message sees it.

    -- Don

Don.Gilbert@iubio.bio.indiana.edu    
biology dept., indiana univ.,  bloomington, in 47405, usa