In IE you can use accesskey="F" for an alt+F combination.

You can also use labels which will give the input box focus if you click
them.

<label for="file">&File</label><input type="text" name="filename"
id="file" accesskey="F">

______________________
steve oliver
atnet solutions, inc.
http://www.atnetsolutions.com


-----Original Message-----
From: Shawn Grover [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 12, 2002 9:17 PM
To: CF-Talk
Subject: OT: intercepting keystrokes??


Is it possible to intercept the keystrokes from anywhere on the web page
(i.e. an input text box may or may not have focus).

I have a need to simulate the windows behaviour of the Alt-Key
combinations
(i.e. Alt-F opens a file menu, Alt-S may trigger a button event, etc.)

I'm looking for ideas on how to do this.  I'm assuming I'll need
javascript
and event coding.  A sample would be good too - should be enough for me
to
get started.

Thanks in advance.


______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to