Just noticed: there is missing piece in my controlkeydown handler -- if you try 
to just paste it into your frontscript and run it, it will halt on the last 
line below. It calls a function q(), which you also need:

function q str
   return quote and str and quote
end q

Sorry. Another piece of my library that I've been using so long I take it for 
granted.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig


> on controlkeydown whichKey
>  -- I use control-shift for all the scripteditor shortcuts
>  if the shiftKey is not down then pass controlkeydown
>  put the long name of the target into tarName
>  if "revNewScriptEditor" is not in tarName then
>     pass controlkeydown
>  end if
>  switch whichKey
>     case "'" -- put quotes around the selection
>        get the selection
>        put q(it) into the selection


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

Reply via email to