Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: key.go missing sgr event len calculation #841

Merged
merged 1 commit into from
Oct 16, 2023
Merged

fix: key.go missing sgr event len calculation #841

merged 1 commit into from
Oct 16, 2023

Conversation

robin-samuel
Copy link
Contributor

I also mentioned it in #594 ! You have to fix the mouseEventLen here otherwise it will throw after each detected sgr event random keyRunes Events with left over chars. Bad for focused input fields and so on. SGR events dont have like X10 Events a fixed length of 6.

@aymanbagabas aymanbagabas merged commit e07c862 into charmbracelet:ext-mouse Oct 16, 2023
9 checks passed
aymanbagabas added a commit that referenced this pull request Dec 4, 2023
…rt (#594)

* feat(mouse): add extended mouse & shift key support

Support SGR(1006) mouse mode
Support parsing shift key press
Support additional mouse buttons
Report which button was released
Report button motion

* fix: key.go sgr len missing calculation (#841)

* chore(test): add sgr mouse msg detect test

---------

Co-authored-by: robinsamuel <96998379+robin-samuel@users.noreply.github.com>
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.

None yet

2 participants