[CLOSED] Replacement : KeyBinding.StopEvent and KeyBinding.Listeners

  1. #1

    [CLOSED] Replacement : KeyBinding.StopEvent and KeyBinding.Listeners

    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
    Last edited by Daniil; Jan 22, 2013 at 4:03 AM. Reason: [CLOSED]
  2. #2
    Hi Peter,

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

    Also you can call
    e.stopEvent();
    within a Handler.

Similar Threads

  1. KeyBinding - list of keys available?
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Sep 24, 2009, 2:43 PM
  2. Keybinding on Panel
    By lazycoder in forum 1.x Help
    Replies: 0
    Last Post: Aug 28, 2009, 5:39 AM
  3. Keybinding on Window
    By lazycoder in forum 1.x Help
    Replies: 0
    Last Post: Aug 21, 2009, 9:43 AM
  4. [CLOSED] KeyBinding F5 and stopevent?
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 26, 2009, 7:11 PM
  5. Keybinding - Enter key not working?
    By Tbaseflug in forum 1.x Help
    Replies: 1
    Last Post: Feb 19, 2009, 4:08 AM

Posting Permissions