terminal/src/cascadia
Dustin L. Howett (MSFT) f04b7aae87
wpf: add support for VT mouse mode (#5375)
## Summary of the Pull Request

This pull request ports the VT mouse code from TermControl to WpfTerminalControl. Our WPF control is a lot closer to Win32 than to Xaml, so our mouse event handler looks _nothing_ like the one that we got from Xaml. We can pass events through almost directly, because the window message handling in the mouse input code actually came from _conhost_. It's awesome.

Neither TermControl nor conhost pass hover events through when the control isn't focused, so I wired up focus events to make sure we acted the same.

Just like Terminal and conhost, mouse events are suppressed when <kbd>Shift</kbd> is held.

## Validation Steps Performed
Tested with MC, and tested by manually engaging SGR events in an Echo terminal.

![image](https://user-images.githubusercontent.com/14316954/79417901-2f976a00-7f68-11ea-97e9-c053cbed3878.png)
2020-04-17 02:05:47 +00:00
..
CascadiaPackage Prepare for automated localization (#5119) 2020-03-25 21:06:59 +00:00
inc ci: run spell check in CI, fix remaining issues (#4799) 2020-03-25 11:02:53 -07:00
LocalTests_TerminalApp Rename copy keybinding arg (#5216) 2020-04-02 23:10:28 +00:00
PublicTerminalCore wpf: add support for VT mouse mode (#5375) 2020-04-17 02:05:47 +00:00
TerminalApp Fix localizability issues in Windows Terminal (#5339) 2020-04-14 20:48:46 +00:00
TerminalAzBridge deps: upgrade CppWinRT to 2.0.200316.3, gsl to v2.1.0 (#4536) 2020-03-23 17:15:24 +00:00
TerminalConnection Rework error handling and state flow in the Azure connection (#5356) 2020-04-16 17:32:52 -07:00
TerminalControl Fix localizability issues in Windows Terminal (#5339) 2020-04-14 20:48:46 +00:00
TerminalCore wpf: port selection changes from TermControl, add multi-click selection (#5374) 2020-04-17 01:10:29 +00:00
TerminalSettings Rework and simplify selection in TermControl (#5096) 2020-03-25 21:09:49 +00:00
UnitTests_TerminalCore Show a double width cursor for double width characters (#5319) 2020-04-15 19:23:06 +00:00
ut_app ci: run spell check in CI, fix remaining issues (#4799) 2020-03-25 11:02:53 -07:00
WindowsTerminal Use MONITOR_DEFAULTTONEAREST so we can restore properly from minimized (#5213) 2020-04-01 21:19:04 +00:00
WindowsTerminalUniversal Import fmtlib/fmt@6.2.0, a C++20-style format library (#5336) 2020-04-14 13:04:23 -07:00
WinRTUtils deps: upgrade CppWinRT to 2.0.200316.3, gsl to v2.1.0 (#4536) 2020-03-23 17:15:24 +00:00
WpfTerminalControl wpf: add support for VT mouse mode (#5375) 2020-04-17 02:05:47 +00:00
CascadiaResources.build.items Add Int, Dev and IntDev assets; switch to them (#4006) 2019-12-17 19:57:51 -08:00