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. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f29b59b781
commit
23c37c2c4e
@ -1534,6 +1534,10 @@ void wxMenuBar::RebuildAccelTable()
|
||||
|
||||
delete [] accelEntries;
|
||||
}
|
||||
else // No (more) accelerators.
|
||||
{
|
||||
SetAcceleratorTable(wxAcceleratorTable());
|
||||
}
|
||||
}
|
||||
|
||||
#endif // wxUSE_ACCEL
|
||||
|
Loading…
Reference in New Issue
Block a user