Allow to add extra accelerators to wxMenuItem
These accelerators are not shown in wxMenuItem label, but still will work. Implement support for them in all major ports and XRC. Co-Authored-By: Vadim Zeitlin <vadim@wxwidgets.org>
This commit is contained in:
committed by
Vadim Zeitlin
parent
e729791222
commit
0cd898975c
@@ -296,6 +296,11 @@ void wxMenuItemBase::SetAccel(wxAcceleratorEntry *accel)
|
||||
SetItemLabel(text);
|
||||
}
|
||||
|
||||
void wxMenuItemBase::AddExtraAccel(const wxAcceleratorEntry& accel)
|
||||
{
|
||||
m_extraAccels.push_back(accel);
|
||||
}
|
||||
|
||||
#endif // wxUSE_ACCEL
|
||||
|
||||
void wxMenuItemBase::SetItemLabel(const wxString& str)
|
||||
|
||||
Reference in New Issue
Block a user