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

[macosx] Cmd-Q does not quit a graphical Java app

XMLWordPrintable

    • b11
    • x86
    • os_x
    • Verified

      FULL PRODUCT VERSION :
      java version "1.7.0_04-ea"
      Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b225)
      Java HotSpot(TM) 64-Bit Server VM (build 23.0-b09, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS X 10.7.2

      A DESCRIPTION OF THE PROBLEM :
      Screen menu bar keyboard shortcuts don't fire.

      REGRESSION. Last worked in version 7

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      0. Install developer preview b225
      1. /Library/Java/JavaVirtualMachines/JDK\ 1.7.0\ Developer\ Preview.jdk/Contents/Home/bin/java -jar /Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar
      2. Press Cmd-Q


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The app should quit.

      Selecting "Quit SwingSet" from the "SwingSet" app menu does correctly quit the app.
      ACTUAL -
      Nothing happens. Event goes into a black hole.

      This appears to be a problem with command event processing, likely from the hot-wiring of -[AWTView performKeyEquivilant:] to always lob events up to Java, and never letting organic [super performKeyEquivilant:] from trickling up to the menu bar if nothing in Java is overriding the event.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      None. All keyboard shortcuts in the screen menu bar appear to be gobbled by Java.

            ant Anton Tarasov (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: