mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
FIX: mac command key been translated and cannot work
Change-Id: Ib8f83e7c0acee36ebf2f7365f544eeb804b4db8a
This commit is contained in:
parent
feeb2dadae
commit
23295f251c
1 changed files with 6 additions and 3 deletions
|
@ -158,6 +158,12 @@ static wxIcon main_frame_icon(GUI_App::EAppMode app_mode)
|
||||||
|
|
||||||
wxDEFINE_EVENT(EVT_SYNC_CLOUD_PRESET, SimpleEvent);
|
wxDEFINE_EVENT(EVT_SYNC_CLOUD_PRESET, SimpleEvent);
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
static const wxString ctrl = ("Ctrl+");
|
||||||
|
#else
|
||||||
|
static const wxString ctrl = _L("Ctrl+");
|
||||||
|
#endif
|
||||||
|
|
||||||
MainFrame::MainFrame() :
|
MainFrame::MainFrame() :
|
||||||
DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_STYLE, "mainframe")
|
DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_STYLE, "mainframe")
|
||||||
, m_printhost_queue_dlg(new PrintHostQueueDialog(this))
|
, m_printhost_queue_dlg(new PrintHostQueueDialog(this))
|
||||||
|
@ -1983,7 +1989,6 @@ static void add_common_publish_menu_items(wxMenu* publish_menu, MainFrame* mainF
|
||||||
|
|
||||||
static void add_common_view_menu_items(wxMenu* view_menu, MainFrame* mainFrame, std::function<bool(void)> can_change_view)
|
static void add_common_view_menu_items(wxMenu* view_menu, MainFrame* mainFrame, std::function<bool(void)> can_change_view)
|
||||||
{
|
{
|
||||||
const wxString ctrl = _L("Ctrl+");
|
|
||||||
// The camera control accelerators are captured by GLCanvas3D::on_char().
|
// The camera control accelerators are captured by GLCanvas3D::on_char().
|
||||||
append_menu_item(view_menu, wxID_ANY, _L("Default View") + "\t" + ctrl + "0", _L("Default View"), [mainFrame](wxCommandEvent&) {
|
append_menu_item(view_menu, wxID_ANY, _L("Default View") + "\t" + ctrl + "0", _L("Default View"), [mainFrame](wxCommandEvent&) {
|
||||||
mainFrame->select_view("plate");
|
mainFrame->select_view("plate");
|
||||||
|
@ -2013,8 +2018,6 @@ void MainFrame::init_menubar_as_editor()
|
||||||
wxMenuBar::SetAutoWindowMenu(false);
|
wxMenuBar::SetAutoWindowMenu(false);
|
||||||
m_menubar = new wxMenuBar();
|
m_menubar = new wxMenuBar();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const wxString ctrl = _L("Ctrl+");
|
|
||||||
|
|
||||||
// File menu
|
// File menu
|
||||||
wxMenu* fileMenu = new wxMenu;
|
wxMenu* fileMenu = new wxMenu;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue