-
Notifications
You must be signed in to change notification settings - Fork 57
Conversation
@ungb Could you test this out? |
I will have time to test this next week but I added it to the community triage project to ask for help from @ungb as well ⚡ |
on windows I can still repro this issue @Ben3eeE |
I've tried the following
When I launch atom it still is the same behavior as in #217 (comment) 🤔 . Also when I try to build atom with
I've also attempted to make sure the package version matches the package.json in atom |
@ungb you should be able to just build and launch Atom in dev mode. It looks like there's some sort of issue generating the startup snapshot, which doesn't seem like it should be related to this change. Maybe it has something to do with the module being linked? |
Yep, still doesn't work with this PR. |
Never mind about that last comment, I just tried again and now it's working? I think I may have forgotten a step when linking atom-keymap last time. |
@ungb It is working for both me and @50Wliu. Is it ok to merge this and open a PR on atom/atom so you can test from there? |
Thanks to @Ben3eeE for the fix and @50Wliu for testing it out. |
Published as v8.2.3 if we wanna get a PR going on atom/atom. |
thanks for double checking @50Wliu! I'll give this another go when it's merged and in, unsure why I couldn't get it working. |
@nathansobo Thank you for merging and publishing. I have opened a PR on atom/atom with these changes. |
I'm verifying now, I'll merge the pr once I'm done, should be in the next hour or so. EDIT: sorry for the delay got pulled into something else, I'm building now... |
Requirements
Description of the Change
When dealing with caps lock issues we do it after dropping modifiers. This causes issues when
KeyboardEvent.key
is a lower-case letter because of caps lock and shift being depressed during the keystroke becausenonAltModifiedKeyForKeyboardEvent
returns the upper case letter. SinceP !== p
the modifiers are dropped.This PR moves the caps lock issue dealing code up to before we drop modifiers to avoid this issue and adds a simple test for this behavior.
Alternate Designs
Did not consider any alternate designs.
Benefits
Fixes issues with caps lock and shift on Windows.
Possible Drawbacks
I have not linked and tested this in Atom yet so there may be some other issues introduced by this.
Applicable Issues
Fixes #216
/cc: @50Wliu