mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
ENH:add shortcut in macos
Change-Id: I2c2145caab987fcb8073c4e7891769142dab840a
This commit is contained in:
parent
85ffeb291d
commit
cd3a721f86
5 changed files with 170 additions and 121 deletions
|
@ -3014,10 +3014,12 @@ std::string GUI_App::handle_web_request(std::string cmd)
|
|||
wxKeyEvent e(wxEVT_CHAR_HOOK);
|
||||
#ifdef __APPLE__
|
||||
e.SetControlDown(cmdKey);
|
||||
e.SetRawControlDown(ctrlKey);
|
||||
#else
|
||||
e.SetControlDown(ctrlKey);
|
||||
#endif
|
||||
e.SetShiftDown(shiftKey);
|
||||
keyCode = keyCode == 188 ? ',' : keyCode;
|
||||
e.m_keyCode = keyCode;
|
||||
e.SetEventObject(mainframe);
|
||||
wxPostEvent(mainframe, e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue