PDA

View Full Version : Use Ctrl+tab for tabpanelchange



tkg1
18 Nov 2010, 1:58 AM
Hi *...

anyone knows if it is possible to use ctrl+tab for changing the panel of a tabpanel and preventing browser changing its tabs?

Thanks a lot,
tk

tkg1
18 Nov 2010, 2:23 AM
Just to let you know, so you dont think, i havent tried it...
I tried...


var map = new Ext.KeyMap(document, [{
key : [9],
ctrl : true,
stopEvent : true,
fn : function() {
alert('crtl, tab was pressed');
}}]);



fired the event, but doesnt prevent the browser from doin the default action... :(

any idea?