Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-465

Messagebox does not invoke the listener if ESC is pressed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.9
    • 5.0.7
    • Components
    • None

      Test code:

      <zk>
      <zscript><![CDATA[
      EventListener listener = new EventListener() {
             public void onEvent(Event event) {
                     alert("click:"+event.name);
             }
      }
      ]]></zscript>
      
      <button label="Test"
      onClick='Messagebox.show("Yes and No", "Test", Messagebox.YES+Messagebox.NO, Messagebox.INFORMATION, listener)'/>
      
      </zk>
      

      If the user presses ESC, the specified listener must be called (with onNo).

            Unassigned Unassigned
            jimmyshiau jimmyshiau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: