Restore wxSTC built-in key mappings for non-Mac platforms

This was broken by bfdf70d14a, so keep one of
the changes done there conditional on the platform to avoid changing behaviour
for the non-Mac ones.

Closes #17251.
This commit is contained in:
Vadim Zeitlin
2015-11-16 03:18:06 +01:00
parent 2460410278
commit cc27d305a2

View File

@@ -1105,7 +1105,14 @@ int ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
evt.ShiftDown(),
evt.ControlDown(),
evt.AltDown(),
// Under Mac, ControlDown() returns the status of Cmd key,
// so we sneak the status of the real Ctrl key via SCI_META
// but we shouldn't be doing this elsewhere.
#ifdef __WXMAC__
evt.RawControlDown()
#else
0
#endif
),
consumed
);