Ctrl-Arrow shortcut

Ken Ray kray at sonsothunder.com
Mon Jun 30 17:46:10 EDT 2008


> How would one set the keyboard shortcut for a particular button to ctrl-left
> arrow or ctrl-right arrow?

You'd have to trap that yourself and act accordingly. You can trap the
arrowKey event anywhere you like, but perhaps this is a good candidate for a
frontScript. 

Anyway, here's an example that "attaches" Control-Left Arrow to the button
"Hello":



on arrowKey pDir
  if the controlKey is down and pDir = "left" then
    send mouseUp to btn "Hello"
  else
    -- whatever else you want to do including passing it if you like
  end if
end arrowKey


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/





More information about the use-livecode mailing list