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

macOS: Fix crash when pressing Caps Lock #4024

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

madsmtm
Copy link
Member

@madsmtm madsmtm commented Dec 2, 2024

Events emitted by flagsChanged: cannot access charactersIgnoringModifiers. We were previously doing this because we were trying to re-use the create_key_event function, but that is unsuited for this purpose, so I have separated the flagsChanged: logic out from it.

There is still more work needed here to actually report NamedKey::CapsLock to user code, but I've started with this to keep the diff smaller if backporting to v0.30.6.

Fixes alacritty/alacritty#8268.

  • Tested on all platforms changed
  • Added an entry to the changelog module if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality

Events emitted by `flagsChanged:` cannot access
`charactersIgnoringModifiers`. We were previously doing this because we
were trying to re-use the `create_key_event` function. It is unsuited
for this purpose, however, so now the `flagsChanged:` logic is separate
from it.
@madsmtm madsmtm force-pushed the madsmtm/fix-caps-lock branch from 38510ae to 17d4012 Compare December 2, 2024 12:11
@madsmtm madsmtm merged commit f314cd2 into master Dec 3, 2024
58 checks passed
@madsmtm madsmtm deleted the madsmtm/fix-caps-lock branch December 3, 2024 17:48
kchibisov pushed a commit that referenced this pull request Dec 16, 2024
Events emitted by `flagsChanged:` cannot access
`charactersIgnoringModifiers`. We were previously doing this because we
were trying to re-use the `create_key_event` function, but that is unsuited
for this purpose, so I have separated the `flagsChanged:` logic out from it.
kchibisov pushed a commit that referenced this pull request Dec 16, 2024
Events emitted by `flagsChanged:` cannot access
`charactersIgnoringModifiers`. We were previously doing this because we
were trying to re-use the `create_key_event` function, but that is unsuited
for this purpose, so I have separated the `flagsChanged:` logic out from it.
kchibisov pushed a commit that referenced this pull request Dec 21, 2024
Events emitted by `flagsChanged:` cannot access
`charactersIgnoringModifiers`. We were previously doing this because we
were trying to re-use the `create_key_event` function, but that is unsuited
for this purpose, so I have separated the `flagsChanged:` logic out from it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - crash The bug results in crashing DS - macos
Development

Successfully merging this pull request may close these issues.

macOS specific keyboard input crashes alacritty 0.14.0
2 participants