icecats11 / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

Ctrl+L and Ctrl+P open dialog in IE6/IE7 #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to the demo page using IE
2. Press Ctrl+P
3. The print dialog appears

What is the expected output? What do you see instead?
I expected the dialog NOT to appear

What version of the product are you using? On what operating system?
IE7 on Windows XP 64

Please provide any additional information below.
There is a relative easy way to fix this. The following javascript snippet 
could be inserted in the keydown listener:

// Only IE
if (window.event) {
  try { window.event.keyCode = 0; } catch(e) {/* Ignore */}
}

Original issue reported on code.google.com by r.spilker on 12 Feb 2009 at 9:48

GoogleCodeExporter commented 8 years ago
same problem here!

thanks to you for provide an alternative solution!

Original comment by camilo.a...@gmail.com on 8 Apr 2009 at 5:07

GoogleCodeExporter commented 8 years ago
Fixed for IE8 haven got earlier on my windows machine.
see test-static-04.html example at github repo

Original comment by Afro.Sys...@gmail.com on 3 May 2009 at 8:46