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

Pressing 'CTRL + SPACE' on a button triggers action event for button as well as menuitem, win32

XMLWordPrintable

    • b45
    • x86
    • windows_xp
    • Verified

      I am having a frame with a menu and a button. Menu has a menuitem with a shortcut (CTRL + SPACE). When the focus is in button, I am pressing CTRL + SPACE. When I do this, both the button as well as the menu item triggers the action event on win_xp. This is incorrect. When pressing ctrl + space, only the menu item should trigger the action event. This is how it works on solaris / linux with Motif as well as XToolkits. It does not make sense to make menuitem as well as button trigger action event for a menu shortcut. Moreover, the button does not look pressed visually in this case.

      This is reproducible since 1.4 on Win-XP. I have attached a sample test. Execute the test. Make sure focus is on the button. Press 'CTRL + SPACE'. If you see 2 action events being triggered in the console, the bug is reproduced.
      ###@###.### 10/19/04 13:47 GMT

            denis Denis Fokin (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: