Support multi-code-point characters in TerminalInput::HandleKey #2853
Labels
Area-Input
Related to input processing (key presses, mouse, etc.)
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Product-Conhost
For issues in the Console codebase
Product-Terminal
The new Windows Terminal.
Milestone
Description of the new feature/enhancement
Starting with #2836 key events containing combinations like Shift. (here: US keyboard layout) will be mapped to their matching, potentially non-ASCII, counterparts (here: >).
This is achieved using the
ToUnicodeEx
method.But this leads to a problem:
ToUnicodeEx
can potentially return multiple code points.TerminalInput::HandleKey
and itsKeyEvent
parameter only accept a single code point though.👉
TerminalInput
andKeyEvent
should be modified to accommodate multi-code-point characters (i.e. e.g. by replacingwchar_t
withstd::wstring
).The text was updated successfully, but these errors were encountered: