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

vista: Disabled MenuItem gets selected , but native menuitem does not get selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • x86
    • windows_vista

      Disabled MenuItem gets selected , when i navigate using arrow keys. but in native the disabled menuitem does not get selected , but eats keystoke(can travel through the disabled menuitem).

      Step to Reproduce:
      ----------------------
      1) Run the attached program.
      2) Click on 'Menu2' Menu. you can see 'MenuItem2:1' Menuitem which is disabled.
      3) Use 'Down Arrow' key to get the focus on 'MenuItem2:1' Menuitem. you can see the disabled menuitem gets selected with blue color. I have attached a screen shots of the same. If you the same , then the bug is reproduced.

      I compared this scenario with the native as follows.
      Press ALT + space to get the frame menu. you can see that 'Restore' Menuitem is disabled, try navigating using keyboard, the menuitem eats keystroke , but does not selects the menuitem.

      I tested this on Vista beta2 (build 5342) on Mustang b81.

            dcherepanov Dmitry Cherepanov
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: