terminal/src/interactivity
Dustin L. Howett b1e1c7cdf4
Fix the xterm and SGR mouse encodings for CTRL, ALT, SHIFT (#8379)
We had the xterm and SGR codings for meta/ctrl backwards. Oops.

This commit also fixes an observed issue in Windows Terminal where we
were passing in a console-style modifiers enum when MouseInput is
expecting MK_ constants.

I decided to unify MouseInput around the console-style modifier
constants because they have support for META (which MK_ does not) and
can differentiate between left/right alt/ctrl.

Our tests are fundamentally flawed here: they use a copy of the
modifier key generating logic _themselves_, so we got a bit of "error
carried forward."

I did not fix the tests to use known-good control sequences, I simply
replaced the character generator with another copy of the modifier code.
I did, however, extend them to test ctrl|meta and left/right modifiers.

Fixes #8291
2020-11-30 03:45:53 +00:00
..
base Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
inc Merged PR 5421982: Reflect OS build changes 2020-11-19 23:21:37 +00:00
onecore Change backslashes in include statements to forward slashes (#8205) 2020-11-25 21:02:10 +00:00
win32 Fix the xterm and SGR mouse encodings for CTRL, ALT, SHIFT (#8379) 2020-11-30 03:45:53 +00:00
dirs Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00