Disabling the shortcuts such as Ctrl+A, Ctrl+B.... using Javascript

  • Thread starter Thread starter Gouri.Mahajan7
  • Start date Start date
G

Gouri.Mahajan7

Hello,

Can anybody please tell me how to disable the shortcuts of the
internet explorer? I have hosted control on the web page and i want to
give the inputs such as Ctrl+A, Ctrl+B and so on.. but whenever I type
them pop up windows open in internet explorer. How to disable them??


Thanks.

Regards,
Gouri.
 
Hello,

Can anybody please tell me how to disable the shortcuts of the
internet explorer? I have hosted control on the web page and i want to
give the inputs such as Ctrl+A, Ctrl+B and so on.. but whenever I type
them pop up windows open in internet explorer. How to disable them??


Thanks.

Regards,
Gouri.
Not sure this is ASP.NET but you look at handling the keydown and keypress
events. However not all key combinations can be cancelled and it's generally
poor UI practice to try to override standard combinations such as Ctrl+A
which the user might expect to select all text in a textarea, for example.

http://www.w3schools.com/jsref/jsref_onkeypress.asp
 
Back
Top