Results 1 to 2 of 2

Thread: KeyMap stopEvent not working in Firefox 3.6.8

  1. #1

    Default KeyMap stopEvent not working in Firefox 3.6.8

    Hello,

    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?

    Code:
    var HomeKeyMap = new Ext.KeyMap(document,[{
    		key: 'f',
    		ctrl: true,
    		stopEvent: true,
    		fn: function(){
    			alert('test');
    		}
    	}
    ])
    Thanks in advance!

  2. #2
    Sencha User Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,245

    Default

    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).

Similar Threads

  1. [2.0??] KeyMap not working in Firefox
    By fermo111 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 16 Jun 2011, 10:43 AM
  2. [CLOSED] KeyMap stopEvent not working on IE7
    By dtex-lab in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 22 Feb 2010, 3:21 AM
  3. KeyMap stopEvent not working in IE6
    By cainy82 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 5 Nov 2008, 9:37 PM
  4. KeyMap not working in Firefox
    By fermo111 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Apr 2008, 2:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •