Hi,
I want to prevent/override standard browser keyboard shortcuts, my approach (using isc.Page.setEvent) works in ff but not in chrome.
For example, change the code in:
http://www.smartclient.com/#keyboardEvents
to what is shown below and press ctrl-N, in firefox it works, in chrome I get the new window.
Is there another approach i should follow?
	Thanks!
							
						
					I want to prevent/override standard browser keyboard shortcuts, my approach (using isc.Page.setEvent) works in ff but not in chrome.
For example, change the code in:
http://www.smartclient.com/#keyboardEvents
to what is shown below and press ctrl-N, in firefox it works, in chrome I get the new window.
Is there another approach i should follow?
Code:
	
	mytest = function() {
  if(isc.Event.ctrlKeyDown() && isc.Event.getKey() === 'N'){
    alert('test');
    return false;
  }
  return true;
}
isc.Page.setEvent('keyPress', 'mytest()');

Comment