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:
@@ -1105,7 +1105,14 @@ int ScintillaWX::DoKeyDown(const wxKeyEvent& evt, bool* consumed)
|
|||||||
evt.ShiftDown(),
|
evt.ShiftDown(),
|
||||||
evt.ControlDown(),
|
evt.ControlDown(),
|
||||||
evt.AltDown(),
|
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()
|
evt.RawControlDown()
|
||||||
|
#else
|
||||||
|
0
|
||||||
|
#endif
|
||||||
),
|
),
|
||||||
consumed
|
consumed
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user