I have for years used the following to toggle a field between a locked "hot link ready" state to an editable state:

on mouseDown
  if controlkey()="Down" then
  set the locktext of the target to true
  set the traversalOn of the target to false
  choose browse tool
  end if
end mouseDown
on mouseUp
if optionkey()="Down" then
  set the locktext of the target to false
  set the traversalOn of the target to true
  end if
end mouseUp


Using Tiger (10.4.1) & Rev 2.6, I made a new stack, with nothing in it except this card script:

on mouseDown
  if controlkey()="Down" then
    put "Down + control"
  else
    put "Down"
  end if
end mouseDown

on mouseUp
  if optionkey()="Down" then
    put "Up + option"
  else
    put "Up"
  end if
end mouseUp

It worked exactly as I expected, so i think you may have something else causing your problem. Do you have any frontScripts that could be intercepting the keys?

Sarah

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

Reply via email to