View Full Version : KeyMap stopEvent not working in Firefox 3.6.8

3 Aug 2010, 12:09 PM

The following block of code works great in IE8 and Chrome5, however; in Firefox 3.6.8 the stopEvent does not work. The handler function is called and the alert window is displayed but Firefox also handles the event by bringing up the search box. I'm assuming this is a Firefox issue, I was just wondering if anyone has found a workaround?

var HomeKeyMap = new Ext.KeyMap(document,[{
key: 'f',
ctrl: true,
stopEvent: true,
fn: function(){

Thanks in advance!

4 Aug 2010, 12:47 AM
Some keyboard events can't be stopped, but I had some success with setting e.browserEvent.keyCode to 0 (but this was for the F4 key).