The CTRL key

Results 1 to 2 of 2

Thread: The CTRL key

  1. #1
    Join Date
    Dec 1969

    Default The CTRL key

    I have tried searching for posts which cover this topic, but there has been no specific answer. My question is:<BR><BR>Can you capture the CTRL + S action?<BR><BR>I want to create a short cut to activating a "save" function, if it is possible , I would like this to be CTRL + S. <BR><BR>Anybody know how this can be done?

  2. #2
    Join Date
    Dec 1969

    Default A start...

    Here&#039;s some code for capturing a keypress. Only it returns the same value for "s" and CTRL + S. Maybe it&#039;ll give you some more ideas about what to look for. Post your solution if you find a good one.<BR><BR><BR>&#060;script language=Javascript&#062; <BR> function filterForKey(){<BR> var x<BR> x = window.event.keyCode;<BR> alert(x);<BR> return false;<BR> } <BR>&#060;/script&#062; <BR><BR>&#060;body onKeyDown="filterForKey();"&#062;<BR><BR><BR>&#060 ;/body&#062;<BR>&#060;/html&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts