magiblot / tvision

A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
Other
1.99k stars 150 forks source link

fix for special shift bits generated by putty4far2l #92

Closed unxed closed 1 year ago

unxed commented 1 year ago

putty4far2l supports special bits for distinguishing left and right shift as proposed here: https://github.com/microsoft/terminal/issues/337

but tvision does not supports those bits for now, so shift+some_key combinations become broken.

this PR fixes that.

see #47

magiblot commented 1 year ago

The fix is simpler than that. Instead of having to know in advance which non-standard flags we may get, we can mask dwControlKeyState with the bits that we do expect from it.

Still, thank you for looking into this!