Disable the Home and End keys on a Mac

J. Landman Gay jacque at hyperactivesw.com
Thu Aug 11 11:15:32 EDT 2005


Douglas Gilliland wrote:
> Is there a way to disable the Home and End keys on a Mac? I have
> authored stacks for my high school students and don't want them to
> bypass my questions by hitting these keys to go forward or backward in
> the stack. Searched the Documentation (use the disable command?) and 
> Shafer's book but none of my disable scripts would work.

These do nothing on my Mac, so I'm not sure what you are seeing. Do you 
have a custom frontscript installed, or a rawKeyDown handler? Anyway, 
you can probably use a rawKeyDown handler to trap those keys, and only 
pass the message if the key isn't one you want to block.

Other ways to stop keyboard navigation: set the navigationArrows to 
true, or write an arrowKey handler that doesn't pass the message:

on arrowkey
  -- block
end arrowkey

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list