Jump to content

keys?


ki

Recommended Posts

You can get which CTRL or shift button is clicked from the event object, something like this

<body onkeypress="show_which_ctrl(event);">
<script language="javascript">
function show_which_ctrl(e){
	if (e.ctrlKey) alert("CTRL key pressed");
}
</script>
Hold ctrl and click a button
</body>

 

If you use the CTRL key, the browser shortcuts will work first (for example, CTRL+A will select the entire document).

 

more details here http://msdn2.microsoft.com/en-us/library/ms536939.aspx

 

any left button is only set for IE.

Link to comment
https://forums.phpfreaks.com/topic/50433-keys/#findComment-248207
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.