vadimdemedes / goodness-squad

4 stars 0 forks source link

Fix arrow and page keys wrongly having `meta = true` property in `useInput` hook #3

Open vadimdemedes opened 3 years ago

vadimdemedes commented 3 years ago

See https://github.com/vadimdemedes/ink/issues/398. Note that https://github.com/vadimdemedes/goodness-squad/issues/2 should be fixed first.

When pressing arrow (e.g. ) or page (e.g. PageUp) keys, meta property equals to true, but it should be false.

RichieAHB commented 3 years ago

Any reason this project doesn't uses the Node readline emitKeyPressEvents rather than trying to parse the stream itself?