mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Trying to convince OSX that we want the Control key to behave as Command
key when accessing OSX machine over VNC from a PC.
This commit is contained in:
@@ -5101,7 +5101,11 @@ void GLCanvas3D::on_char(wxKeyEvent& evt)
|
|||||||
{
|
{
|
||||||
// see include/wx/defs.h enum wxKeyCode
|
// see include/wx/defs.h enum wxKeyCode
|
||||||
int keyCode = evt.GetKeyCode();
|
int keyCode = evt.GetKeyCode();
|
||||||
if (evt.GetModifiers() == wxMOD_CONTROL) {
|
int ctrlMask = wxMOD_CONTROL;
|
||||||
|
#ifdef __APPLE__
|
||||||
|
ctrlMask |= wxMOD_RAW_CONTROL;
|
||||||
|
#endif /* __APPLE__ */
|
||||||
|
if ((evt.GetModifiers() & ctrlMask) != 0) {
|
||||||
switch (keyCode) {
|
switch (keyCode) {
|
||||||
case WXK_CONTROL_A: post_event(SimpleEvent(EVT_GLCANVAS_SELECT_ALL)); break;
|
case WXK_CONTROL_A: post_event(SimpleEvent(EVT_GLCANVAS_SELECT_ALL)); break;
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|||||||
Reference in New Issue
Block a user