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

Messagebox does not invoke the listener if ESC is pressed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.0.9
    • Component/s: Components
    • Labels:
      None

      Description

      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).

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: