Click to See Complete Forum and Search --> : Disable browser Short cuts
kamran
10-21-2003, 03:59 AM
HI All:
I need to use the Alt key short cuts in my webApplication.
is there any script or method to disable Alt-V browser short cut?
As browser open View menu in IE 6. ( Alt - V )
Thanks,
Kamran
pelegk1
10-21-2003, 04:14 AM
for example :
<script>
document.onkeydown =xxy;
function xxy(){
alert(2);
}
</script>
kamran
10-22-2003, 08:06 AM
Following code , catches the alt-V Key and opens up the view menu.
Any work around ? , to only alert message, without opening the browser view menu.
Thanks,
---------------------------------------------------------
<HTML>
<script>
function checkKey() {
if(event.altKey) {
if(event.keyCode == 86) {
alert('Alt-V Pressed');
event.returnValue = false;
}
}
}
document.onkeydown = checkKey;
</script>
</HTML>
---------------------------------------------------------
Khalid Ali
10-22-2003, 01:49 PM
I seriously doubt that you can do that with JavaScript(Since js is not designed to interfere in the browsers core functionality)
pelegk1
10-28-2003, 06:33 AM
?