console-rs / console

A rust console and terminal abstraction
MIT License
932 stars 111 forks source link

Return `Key::Tab` instead of `Key::Char(\t)` on Windows #182

Closed Gordon01 closed 1 year ago

Gordon01 commented 1 year ago

On Windows, Key::Tab needs to be handled specially.

This affects code like https://github.com/console-rs/dialoguer/blob/master/src/prompts/input.rs#L474

This PR is tested on conhost.exe and the new Console Host from Windows 11.