PDA

View Full Version : problem --> 2 calls



andryi
7 Aug 2009, 10:21 AM
Hi everybody, I've got a litttle problem:



var sp_BtnCall = new Ext.Action({
text: '<u>L</u>lamar',
width:78,
listeners:{
"render":function() {
sp_KeyMapCall.accessKey({key:'L',shift:true}, this.focus, this);
}
},
onClick: function(e){
if(e){
dsClientWaiting.load();
}
}
});


and, It works fine, with I use the mouse to click the button, but the problem is when I press the combination of the keys and works fine, but If is an alert, the alert is showed twice not only one, so I suppused the reason is because when I used the combination of the keys, executes the listener event and the handler event

can anyone help me=?

Animal
7 Aug 2009, 10:22 AM
From where did you get the idea of onClick? Why not handler as mentioned prominently in the API docs?

andryi
7 Aug 2009, 12:44 PM
yes, I try with handler event too, but I've the same trouble

Animal
7 Aug 2009, 1:16 PM
I don't understand the problem.