Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5097243

REG: Pressing 'ESC' on a file dlg does not dispose the dlg on Xtoolkit

XMLWordPrintable

    • b29
    • x86
    • linux_sun
    • Verified

      I am popping a file dialog by clicking a button on a frame. When I press 'ESC' I expect the dialog to get disposed. When I run this app on XToolkit, this happens for the first time. But when I popup the dialog for the second and subsequent times, pressing 'ESC' has no effect on the file dialog.

      This is reproducible only on XToolkit and not on win32 / Motif. XToolkit is the default toolkit on Linux for tiger and hence this is a regression in tiger. This is reproducible on Tiger-beta2 and not on earlier releases.

      I have attached a sample test. Execute it on Solaris or Linux with XToolkit. You would see a frame. Click on 'Show dialog' button. A file dialog would come up. Press 'ESC'. The dialog will be hidden. Click on the button again. Press 'ESC' and check whether the dialog is getting disposed. If not, it is bug. Try it at least 3/4 times.

      I have also seen a difference with respect to pressing 'ENTER' key. On Motif, pressing 'ENTER' disposes the dialog. But on XToolkit, it does only when one of the files is selected. This intermittent but I am able to reproduce it frequently.

            dcherepanov Dmitry Cherepanov
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: