I can bind eventsin the current window, but I'm using TinyMCE which creates an iframe, and I want to be able to set a keybind to the iframe window to capture a control-S
I have:
$(window.child).keydown(function(e) {
if(!args) args=[]; // IE barks when args is null
if(e.keyCode == key.charCodeAt(0) && e.metaKey) {
callback.apply(this, args);
return false;
}
});
But that isn't working. Ideas?
Thanks