PDA

View Full Version : KeyMap doesn't like body in Firefox?



softwarezman
19 Apr 2012, 11:24 AM
I have a full-page application that I'm working on and I wanted to add a couple keyboard shortcuts to navigate pages back and forth. I added a KeyMap to the body and it works great in IE and Chrome, working anywhere you click and executing my functions. But in Firefox I have to literally CLICK on a toolbar header that I implemented to get it to recognize my keyboard shortcuts. If I click anywhere else and lose focus, Firefox doesn't recognize my shortcut. Has anybody else ran into this issue?

Here is my KeyMap. Nothing special.


var body = Ext.getBody();
var temp = new Ext.util.KeyMap(body, [{
key: Ext.EventObject.NUM_PLUS,
shift: true,
handler: function() {
scheduler.shiftNext();
}
}]

scottmartin
24 Apr 2012, 8:42 PM
What version of ExtJS are you using? Have you tried 4.1GA?
http://www.sencha.com/blog/ext-js-4-1-final-released/

Regards,
Scott.

softwarezman
25 Apr 2012, 3:49 AM
Have not, didn't know it was out yet. I will try it ASAP. Thanks