-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bug]: Caps lock interferes with History hotkeys #5789
Comments
I think it might be best to try to consolidate the discussion on this commit here instead.
Fixing all cases of hotkey ordering and case handling has proven one of the more difficult parts of working with ProseMirror (which is not an easy project to work with in any event.) I'm not familiar with the testing strategy for TipTap but it seems like this area should have some test cases given how brittle the configuration can be. @webkadiz is it troublesome to create a codesandbox to demo those cases so everyone discussing can make sure we all understand the issues clearly? |
ok, I'll show the second point in the video with this configuration:
here I write the "first step", then press ctrl-shift-z (which is responsible for redo), but when the redo stack is empty, Mod-Z is executed, which does undo, then I press ctrl-shift-z again and redo is done ctrl-shift-z.mp4 |
Affected Packages
extension-history
Version(s)
2.9.1
Bug Description
Description
In the editor, pressing
Mod-Z
should triggerundo
andMod-Shift-Z
should triggerredo
.This works as expected unless "Caps lock" is enabled, then it stops working.
Environments
This affects all major browsers on Windows (tested).
Not reproducible on Mac/Chrome.
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
Pressing
Mod-Z
should triggerundo
andMod-Shift-Z
should triggerredo
, even when "Caps lock" is on.Additional Context (Optional)
Previous issues
This issue was reporting the same.
It was marked as resolved.
This is the PR that solved it.
The code introduced by that PR was then removed in this commit, I could not find an explanation as of why it was removed or if the problem was addressed elsewhere.
Dependency Updates
The text was updated successfully, but these errors were encountered: