Commit 6b548268 authored by twanvl's avatar twanvl

Restore tabs in symbol font menu, without making the part after it an accelerator.

TODO: check if this also works on other platforms
parent 0f9169b8
......@@ -469,7 +469,13 @@ wxMenu* InsertSymbolMenu::makeMenu(int id, SymbolFont& font) const {
}
wxMenuItem* InsertSymbolMenu::makeMenuItem(wxMenu* parent, int first_id, SymbolFont& font) const {
wxString menu_name = tr(font, _("menu item"), name, capitalize);
menu_name.Replace(_("\t"),_(" "));
// ensure that there is not actually an accelerator string,
menu_name.Replace(_("\t "),_("\t"));
#ifdef __WXMSW__
menu_name.Replace(_("\t"),_("\t ")); // by prepending " "
#else
menu_name.Replace(_("\t"),_(" ")); // by simply dropping the \t
#endif
if (type == ITEM_SUBMENU) {
wxMenuItem* item = new wxMenuItem(parent, wxID_ANY, menu_name,
wxEmptyString, wxITEM_NORMAL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment