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

Alt key not working properly for control characters #427

Closed
knz opened this issue Aug 29, 2022 · 0 comments · Fixed by #428
Closed

Alt key not working properly for control characters #427

knz opened this issue Aug 29, 2022 · 0 comments · Fixed by #428
Labels
bug Something isn't working

Comments

@knz
Copy link
Contributor

knz commented Aug 29, 2022

Alt+Enter, Alt+Tab, Alt+Ctrl+C, etc do not work properly: they are returned as KeyMsg{Type: KeyRunes, Alt: true} instead of the proper Type.

Because of this bug, to define a key binding for KeyEnter one has to do this instead:

  AlwaysComplete:  key.NewBinding(key.WithKeys("alt+\r")),

which is ugly and disappointing. I wish alt+enter would work instead. The patch in #428 fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants