PDA

View Full Version : [CLOSED] Replacement : KeyBinding.StopEvent and KeyBinding.Listeners



sisa
Jan 16, 2013, 10:05 AM
Hi again...

We're still migrating old ext.net 1 code :-/
Now we struggle in some problems with the KeyBinding.

Is there a replacement for (StopEvent)



KeyBinding.StopEvent


and this construct (Listeners)



If buttonItem.Menu.Count > 0 Then
newKeyBinding.
newKeyBinding.Listeners.Event.Handler = "#{" + buttonItem.ID + "}.showMenu();"
Else
newKeyBinding.Listeners.Event.Handler = "if(!#{" + buttonItem.ID + "}.hidden){#{" + buttonItem.ID + "}.fireEvent('click');};"
End If


Peter

Daniil
Jan 16, 2013, 10:58 AM
Hi Peter,

Please try DefaultEventAction="StopEvent". But it should be by default.

Also you can call

e.stopEvent();
within a Handler.