Tip: F1

Richard Gaskin ambassador at fourthworld.com
Mon May 8 16:33:00 EDT 2006


Chris Sheffield wrote:
 > On Apr 29, 2006, at 1:35 PM, Richard Gaskin wrote:
 >> For Mac folks just getting started in Windows application design,
 >> consider this tidbit from the latest entry at Jensen Harris's blog:
 >>
 >>   Based on our instrumentation data in Office 2003,
 >>   over 75% of users access Help through pressing F1
 >>   (or the key labeled "Help" on many modern keyboards)
 >>   and not by using the Help menu.
 >>
 >> <http://blogs.msdn.com/jensenh/>
 >>
 >> (Note to self: Double-check all apps to make sure F1 support is
 >> present...)
 >
 > Hope you don't mind me asking, but have you implemented this in a
 > standalone yet?  I can't figure out how to make a function key work
 > as a menu shortcut in Rev. I mean, I know I can trap the functionKey
 > message and do what I need to there, but how can I get F1 to actually
 > display in my menu like it does in other Windows apps?

Getting the appearance is part of BZ#601, first requested Sept. 2003:
<http://support.runrev.com/bugdatabase/show_bug.cgi?id=601>

But at least the behavior is simple enough to support:

on functionKey k
   if k = 1 then
     answer "Help"
   else pass functionKey
end functionKey

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list