View Full Version : Panel looses focus when key pressed using MapKey

28 Aug 2009, 9:06 AM
Nothing found in the forum or in the documentation. And I am new to EXT and JS.

I have bound several keys to actions. Works fine except for the fact that in FF the search field receives focus after each key stroke so that one has to click into the current panel again. This is the case for all keys.

I tried to include various "focus()" messages into the key map actions but that did not change anything. Here is an example:

var keyMapZoomPlus = new Ext.KeyMap(document,
{ key: [107], //num-plus
fn: onClZoomPlus,
// scope: document}); //same result
scope: pagesTabsEC}); //the outer panel
function onClZoomPlus(){
zoomPlusPic(); //the action is performed
// window.focus(); //same result
This example is a zoom function, which is typically clicked repeatadly.

What does one have to change or do to enable multiple subsequent key actions without loosing focus?

Thanks for any hint!

28 Aug 2009, 11:27 AM
I got the similar problem, although in different case:


I'm still stunked there.....