commandKeyDown

Richard Gaskin ambassador at fourthworld.com
Thu May 6 15:22:15 EDT 2004


In the MC IDE frontscript is this script:

on commandKeyDown which
   if which is in "1234" then
     set the defaultStack to the topStack
     switch which
     case "1"
       go to first card
       break
     case "2"
       go to prev card
       break
     case "3"
       go to next card
       break
     case "4"
       go to last card
       break
     end switch
   else
     if the optionKey is down then
       switch which
       case "S"
         edit script of the topStack
         break
       case "C"
         edit script of this card of the topStack
         break
       default
         pass commandKeyDown
       end switch
     else pass commandKeyDown
   end if
end commandKeyDown


This will cause problems with any menu in your own stack that uses Cmd-1 
through 4.

I propose removing those but keeping the optionKey section for script 
access:

on commandKeyDown which
   if the optionKey is down then
     switch which
     case "S"
       edit script of the topStack
       break
     case "C"
       edit script of this card of the topStack
       break
     default
       pass commandKeyDown
     end switch
   else pass commandKeyDown
end commandKeyDown


Are more people relying on maintenance of this behavior than are 
adversely affected by it?

-- 
  Richard Gaskin
  Fourth World Media Corporation
  ___________________________________________________________
  Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the metacard mailing list