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:
parent
f9743d17e9
commit
d0b1b3b3de
1 changed files with 5 additions and 1 deletions
|
@ -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__
|
||||||
|
|
Loading…
Add table
Reference in a new issue