/    Sign up×
Community /Pin to ProfileBookmark

Disable browser Short cuts

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

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@pelegk1Oct 21.2003 — for example :

<script>

document.onkeydown =xxy;

function xxy(){

alert(2);

}

</script>
Copy linkTweet thisAlerts:
@kamranauthorOct 22.2003 — 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>
---------------------------------------------------------

Copy linkTweet thisAlerts:
@Khalid_AliOct 22.2003 — I seriously doubt that you can do that with JavaScript(Since js is not designed to interfere in the browsers core functionality)
Copy linkTweet thisAlerts:
@pelegk1Oct 28.2003 — ?
×

Success!

Help @kamran spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...