haskell / haskeline

A Haskell library for line input in command-line programs.
https://hackage.haskell.org/package/haskeline
BSD 3-Clause "New" or "Revised" License
221 stars 75 forks source link

Properly process Unicode key events on Windows #55

Closed RyanGlScott closed 7 years ago

RyanGlScott commented 7 years ago

Fixes #54 by adopting the strategy proposed in https://github.com/judah/haskeline/issues/54#issuecomment-280510726: refine the filtering criteria in processEvent so that it does not discard a keyup event if it comes from holding the left alt key and also emits a valid Unicode character, mimicking the strategy present in libuv.

judah commented 7 years ago

Thanks for the fix!