-
-
Notifications
You must be signed in to change notification settings - Fork 832
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
Key repeat gets stuck after pressing two keys in fast succession (again) #4061
Comments
Please include the debug key events logs from https://wezfurlong.org/wezterm/troubleshooting.html#debugging-keyboard-related-issues |
$ wezterm show-keys --lua
Key logs
This happened when a type |
I think this is a bug in the key event implementation for macos; it seems that it has something to do with macOS IME. Setting This option appears to be enabled by default since 20220319, but this still causes a problem in key repeat as of now (macOS Ventura 13 and wezterm nightly). |
On macOS, with
(See https://macos-defaults.com/misc/applepressandholdenabled.html for more information about the option) Alternatively, if one doesn't wish this option enabled globally, one can also do per-app config such as:
This would be only a workaroun; hope that in the future we could have a proper fix for the broken successive key repeats, because many other apps would work OK even without this setting. |
With the ApplePressAndHoldEnabled macOS option disabled globally, the IME-based key input mechanism for wezterm can work without any problems including successive key repeats and inputting Korean letters. Ref: wez/wezterm#4061
I press |
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
macOS. No window manager used.
WezTerm version
wezterm 20230712-072601-f4abf8fd
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
Same in the nightly wezterm 20230726-161042.
I think the same bug as in #2452 happens again on my environments. The key repeat is stuck when pressing two keys (for a sufficient long time to repeat) in quick succession results in the second key printing one character.
It was working OK in some of the previous version.
e.g.
Actual:
To Reproduce
Same as in #2452; Go into a terminal. Press the key A on your keyboard and hold it. Release it and quickly press the letter B on the keyboard and hold it. b is only printed once, even though it should be continuously be printed.
Configuration
No config needed. Reproducible with the default (zero) config.
Expected Behavior
Expected:
Logs
No response
Anything else?
The text was updated successfully, but these errors were encountered: