Skip to content

Detect native stream keypress events and bail.#267

Open
STRML wants to merge 1 commit intochjj:masterfrom
STRML:respect-native-keys
Open

Detect native stream keypress events and bail.#267
STRML wants to merge 1 commit intochjj:masterfrom
STRML:respect-native-keys

Conversation

@STRML
Copy link
Copy Markdown

@STRML STRML commented Nov 3, 2016

This is because blessed is running its own version of
readline's emitKeypressEvents() to handle mouse escape
codes. Both implementations can be added to the same stream,
resulting in double keypress events.

Refusing to add the handler if another is present does not
fix the mouse escape codes, but it will warn and fix the
double input.

See #92 and nodejs/node#9447.

This is because blessed is running its own version of
readline's `emitKeypressEvents()` to handle mouse escape
codes. Both implementations can be added to the same stream,
resulting in double keypress events.

Refusing to add the handler if another is present does not
fix the mouse escape codes, but it will warn and fix the
double input.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant