Ticket #15078 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Removing Single Menu Accelerator Fails

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

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

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

Change History

Changed 3 months ago by artlogic

src/msw/menu.cpp patch

Changed 3 months ago by VZ

  • status changed from new to closed
  • resolution set to fixed

(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.