PDA

View Full Version : Ext.util.KeyMap doesn't work on the render event of the Viewport.



Elfayer
6 Aug 2012, 6:47 AM
Hi,

That doesn't do anything:

'#Viewport': {
render: function (cmp) {
var map = new Ext.util.KeyMap({
target: cmp,
binding: {
key: Ext.EventObject.LEFT,
ctrl: true,
fn: function () {
alert('ctrl + LEFT');
}
}
});
}
}