in my aspx file , i use jquery tabs and i need to change these tabs by pressing ctrl +tab, but as u know this combined key has been used for changing browser tab and i need to make that disable and instead of that, change these jqury tabs
A:
Prevent the default action using:
$(window).keydown(function(e) {
e.preventDefault(); // this should stop any default behavior
// switch tab function
});
As you can see here in SO, pressing Ctrl B makes the text bold (on Firefox it should open bookmark window, but they override this behavior).
BrunoLM
2010-10-09 20:37:25
A:
No, you cannot prevent Ctrl+Tab doing its default action, in Firefox at least. When Ctrl+Tab is pressed (in contrast to the vast majority of other key combinations), no event is fired on the window, so you can neither prevent it nor respond to it.
lonesomeday
2010-10-09 21:28:32
A:
so can i use any other combination such as ctrl + arrow keys to do that? if yes how can i?
adrakadabra
2010-10-10 05:53:05