-
Notifications
You must be signed in to change notification settings - Fork 947
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
Duplicate key events on macOS #734
Comments
FWIW I can reproduce this issue. As a few others who use the Dvorak keyboard (or other alternate) layouts |
Interestingly, it is only for If I remap it to |
I've found something that might be related. After changing the alacritty config to use "Cmd + ." to do paste and changing my keyboard layout to Dvorak, I found that doing "Cmd + ." according to the Dvorak layout does nothing, but doing "Cmd + v" according to the Dvorak layout will paste twice. "v" on the Dvorak keyboard layout corresponds to "." on the QWERTY keyboard, so there's a chance that keyboard inputs are not processed cleanly according to the current keyboard layout. |
I've been digging into the source code for the macOS It appears as if there once was a bug in AppKit where key-up events weren't being sent to the right window while the The code quoted above attempts to address this bug by inserting the correct key-down event for After some testing: removing the |
long resolved. |
It has been reported to Alacritty that in certain circumstances the
Paste
key is sent multiple times to the winit application.The relevant bug report in Alacritty can be found here:
alacritty/alacritty#1842
Based on the troubleshooting there, it looks like the key event is actually sent twice, however user-related problems probably can't completely be excluded since there has been noone able to reproduce this issue.
My initial thought was that it might be related to key repeat rate, but that seems to be default.
The text was updated successfully, but these errors were encountered: