FIX:fix bug of shortcut key
jira: STUDIO-7252 Change-Id: I9e83c4055250aa78701baa5626006f14390f4fc5 (cherry picked from commit f20788cd2c2eded210ad008601915630c998427b)
This commit is contained in:
parent
c89732a046
commit
4f5922f193
|
@ -82,7 +82,7 @@ const std::string& shortkey_ctrl_prefix()
|
|||
{
|
||||
static const std::string str =
|
||||
#ifdef __APPLE__
|
||||
"⌘+"
|
||||
"command+" //"⌘+"
|
||||
#else
|
||||
_u8L("Ctrl+")
|
||||
#endif
|
||||
|
@ -94,7 +94,7 @@ const std::string& shortkey_alt_prefix()
|
|||
{
|
||||
static const std::string str =
|
||||
#ifdef __APPLE__
|
||||
"⌥+"
|
||||
"option+"//"⌥+"
|
||||
#else
|
||||
"Alt+"
|
||||
#endif
|
||||
|
|
|
@ -2172,10 +2172,15 @@ static const wxString sep_space = "";
|
|||
static wxMenu* generate_help_menu()
|
||||
{
|
||||
wxMenu* helpMenu = new wxMenu();
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
// shortcut key
|
||||
append_menu_item(helpMenu, wxID_ANY, _L("Keyboard Shortcuts") + sep + "&?", _L("Show the list of the keyboard shortcuts"),
|
||||
auto alt = GUI::shortkey_alt_prefix();
|
||||
append_menu_item(helpMenu, wxID_ANY, _L("Keyboard Shortcuts") + sep + "& Shift+" + alt +"+?", _L("Show the list of the keyboard shortcuts"),
|
||||
[](wxCommandEvent&) { wxGetApp().keyboard_shortcuts(); });
|
||||
#else
|
||||
append_menu_item(helpMenu, wxID_ANY, _L("Keyboard Shortcuts") + sep + "& Shift+?", _L("Show the list of the keyboard shortcuts"),
|
||||
[](wxCommandEvent &) { wxGetApp().keyboard_shortcuts(); });
|
||||
#endif
|
||||
// Show Beginner's Tutorial
|
||||
append_menu_item(helpMenu, wxID_ANY, _L("Setup Wizard"), _L("Setup Wizard"), [](wxCommandEvent &) {wxGetApp().ShowUserGuide();});
|
||||
|
||||
|
|
Loading…
Reference in New Issue