#15078 closed defect (fixed)

Removing Single Menu Accelerator Fails

Reported by: artlogic Owned by:
Priority: normal Milestone:
Component: wxMSW Version: stable-latest
Keywords: Cc:
Blocked By: Blocking:
Patch: yes

Description

Under MSW, if a pull down menu bar has a single accelerator, it cannot be removed, despite removing it from the menu item label. This only occurs when the menu bar has only one accelerator.

I believe I've found the problem and am attaching an untested patch that should resolve it. As I don't have proper toolchain on MSW, it will take a few days for me to test this. If someone else could take a look I'd appreciate it.

Attachments (1)

menu.diff download (335 bytes) - added by artlogic 18 months ago.
src/msw/menu.cpp patch

Download all attachments as: .zip

Change History (2)

Changed 18 months ago by artlogic

src/msw/menu.cpp patch

comment:1 Changed 18 months ago by VZ

  • Resolution set to fixed
  • Status changed from new to closed

(In [73594]) Reset accelerator table after removing last accelerator in wxMSW wxMenuBar.

We didn't update the accelerator table if no more accelerators were left in it
but we still need to do it to stop handling the previously active accelerators.

Closes #15078.

Note: See TracTickets for help on using tickets.